<p>Assuming a pod has an environmental variable set both in its spec, as e.g. below</p>

<pre><code>spec:
  containers:
  - name: env-print-demo
    image: bash
    env:
    - name: FOO
      value: "BAR"
</code></pre>

<p>as also injected to it via a <code>ConfigMap</code> (but with a different value) which is the one that will be taken into account?</p>

<p>When a key exists in multiple sources, <strong>the value associated with the last source will take precedence</strong>.</p>

<p><a href="https://stackoverflow.com/questions/54398272/override-env-values-defined-in-container-spec">Override env values defined in container spec</a></p>
