title: Helm - overwrite specific values from values.yaml
body: <p>I'm using Helm and for <a href="https://github.com/helm/charts/tree/master/stable/nginx-ingress" rel="nofollow noreferrer"><code>nginx-ingress</code></a> I need to add some annotations. </p>
  
  <p>Inside the chart's <a href="https://github.com/helm/charts/blob/master/stable/nginx-ingress/values.yaml" rel="nofollow noreferrer"><code>values.yaml</code></a> file, the <code>podAnnotations</code> is empty (<code>{}</code>).</p>
  
  <p>The question I have is: what is the right way to add these annotations?</p>
  
  <p>The annotations are a child of <code>controller</code> which is the root element of the <code>values.yaml</code> </p>
  
  <pre><code>controller:
    ...
    podAnnotations:
      ...
  </code></pre>
  
  <p>Now, I get the feeling that I have to copy the whole <code>values.yaml</code> file into  my <code>custom-values.yaml</code> in which I added the annotations.</p>
  
  <pre><code>$&gt; heml install -f ./custom-values.yaml stable/nginx-ingress
  </code></pre>
  
  <p>But if I copy the whole values file I get the feeling that I can run into trouble if <code>stable/nginx-ingress</code> changes values inside <code>values.yaml</code> over time</p>