<p>Below is Helm code to install </p>

<pre><code>helm install coreos/kube-prometheus --name kube-prometheum --namespace monitoring -f kube-prometheus.yml
</code></pre>

<p>by this way we can override the value.yml values with the values present in kube-prometheus.yml.</p>

<p>Is there any way by which we can first install and then update the value.yml from kube-prometheus.yml file.</p>

<p>I can use <code>helm upgrade releasename kube-prometheum</code>after changing the value.yml file directly. I don't want that</p>

<p>Use case:
Initially, I used an image with tag 1.0 in value.yml. Now I have below code in kube-prometheus.yml just to update the image tag </p>

<pre><code>prometheusconfigReloader:
image:
 tag: 2.0
</code></pre>

<p>Instead of deleting and creating again. I want to upgrade it. This is just for example, there could be multiple values. that is why I can't use -set.</p>

Vikas Rathore
<p>So you first run <code>helm install coreos/kube-prometheus --name kube-prometheum --namespace monitoring -f kube-prometheus.yml</code> with your values file set to point at 1.0 of the image:</p>

<pre><code>prometheusconfigReloader:
image:
 tag: 1.0
</code></pre>

<p>Then you change the values file or create a new values file or even create a new values file containing:</p>

<pre><code>prometheusconfigReloader:
image:
 tag: 2.0
</code></pre>

<p>Let's say this file is called kube-prometheus-v2.yml Then you can run:</p>

<p><code>helm upgrade -f kube-prometheus-v2.yml kube-prometheum coreos/kube-prometheus</code></p>

<p>Or even:</p>

<p><code>helm upgrade -f kube-prometheus.yml -f kube-prometheus-v2.yml kube-prometheum coreos/kube-prometheus</code></p>

<p>This is because both values file overrides will be overlaid and according to the <a href="https://github.com/helm/helm/blob/master/docs/helm/helm_upgrade.md" rel="noreferrer"><code>helm upgrade</code> documentation</a> "priority will be given to the last (right-most) value specified".</p>

<p>Or if you've already installed and want to find out what the values file that was used contained then you can use <a href="https://github.com/helm/helm/blob/master/docs/helm/helm_get_values.md" rel="noreferrer"><code>helm get values kube-prometheum</code></a></p>
