Answers: <p>I've eventually created an umbrella chart with alias:</p>
  
  <pre><code>dependencies:
    - name: app
      repository: file://./app
      version: 1.0.0
      alias: child1
    - name: app
      repository: file://./app
      version: 1.0.0
      alias: child2
  </code></pre>
  
  <p>And in values.yaml i've changed the needed values,
  then added the grafana dashboard in the bundled yaml file.</p>
  
Answers: CC BY-SA 4.0
Answers: 2019-09-09T14:46:13.623Z
Answers: 2019-09-09T14:46:13.623Z
Answers: ArielB
Body: <p>in my use case i've got a helm chart for my application.</p>
  
  <p>One of the resources is actually a <strong>Grafana Dashboard</strong> for the application.</p>
  
  <p>This dashboard actually monitors all instances of the application, and i want it to be deployed only once.</p>
  
  <p>Considering i'm performing 2 <strong>helm install</strong> commands for the same apps, which will cause the dashboard to be deployed <strong>twice</strong>, what's the best practices to have it deployed only once?</p>
  
  <ul>
  <li>Should it be a totally different "release"? (and be deployed individualy?)</li>
  <li>Should I specify in the 2nd installation not to deploy the dashboard? (seems bad)</li>
  </ul>
  
  <p>What's the best practice?</p>
  
Tags: <kubernetes><helm>
Title: What's the way to deploy a resource once on a helm chart that is deployed multiple times?
UserDisplayName: ArielB
ThreadText: # What's the way to deploy a resource once on a helm chart that is deployed multiple times?
  
  (Asked by: username_0 on 2019-09-09)
  
  in my use case i've got a helm chart for my application.
  
  One of the resources is actually a **Grafana Dashboard** for the application.
  
  This dashboard actually monitors all instances of the application, and i want it to be deployed only once.
  
  Considering i'm performing 2 **helm install** commands for the same apps, which will cause the dashboard to be deployed **twice**, what's the best practices to have it deployed only once?
  
  * Should it be a totally different "release"? (and be deployed individualy?)
  * Should I specify in the 2nd installation not to deploy the dashboard? (seems bad)
  
  What's the best practice?
  
  **Tags:** kubernetes, helm
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-09-09. Score: 1
  
  I've eventually created an umbrella chart with alias:
  
  ```
  dependencies:
    - name: app
      repository: file://./app
      version: 1.0.0
      alias: child1
    - name: app
      repository: file://./app
      version: 1.0.0
      alias: child2
  
  ```
  
  And in values.yaml i've changed the needed values,
  then added the grafana dashboard in the bundled yaml file.
  
  
  ---
  
  