<p>For one of my containers inside a pod I set some of the environment variables using <code>envFrom</code>:</p>

<pre><code>envFrom:
  - configMapRef:
      name: my-config-map
</code></pre>

<p>Experimenting, it seems that updating the ConfigMap does not change the value of the corresponding environment value in the container. </p>

<p>Is there some way to force the update of the environment variable when setting them using <code>configMapRef</code>? If not, where is this limitation explicitly documented?</p>

<p>The environment variables are set when the container is starting so there is no possible way to update those environment variables. You will need to restart Pod so it that reads again the ConfigMap values and sets the environment for the new created container.</p>

<p>You can do this automatically with some tools out there, like <a href="https://github.com/stakater/Reloader" rel="noreferrer">reloader</a>, which will </p>

<blockquote>
  <p>watch changes in ConfigMap and Secrets and then restart pods for Deployment</p>
</blockquote>
