title: helm charting - how to render a same template more than once?
body: <p>I wish to create a helm chart to deploy an app that has multiple different pods (hence multiple deployment manifests). Here's the structure of the chart:</p>
  <pre><code>├── Chart.yaml
  ├── templates
  │   ├── NOTES.txt
  │   ├── _helpers.yaml
  │   ├── comp-1
  │   │   ├── comp-1-deployment.yaml
  │   │   ├── comp-1-ingress.yaml
  │   │   └── comp-1-service.yaml
  │   ├── comp-2
  │   │   ├── comp-2-deployment.yaml
  │   │   └── comp-2-service.yaml
  │   ├── comp-3
  │   │   ├── comp-3-deployment.yaml
  │   │   └── comp-3-service.yaml
  └── values.yaml
  </code></pre>
  <p>I realize the templates for all the components look the same, so I want to refactor to reduce the templates to:</p>
  <pre><code>├── Chart.yaml
  ├── templates
  │   ├── NOTES.txt
  │   ├── _helpers.yaml
  │   ├── comp
  │   │   ├── comp-deployment.yaml
  │   │   ├── comp-ingress.yaml
  │   │   └── comp-service.yaml
  └── values.yaml
  </code></pre>
  <p>and use the values in <code>values.yaml</code> to render <code>comp</code> more than once to generate multiple copies of it. How do I do that? I've looked into partials, it seems it does not do what I want.</p>