<p>I have a running pod and I want to change one of it's container's environment variable and made it work immediately. Can I achieve that? If I can, how to do that?</p>

<p>This worked with me</p>
<blockquote>
<p><code>kubectl set env RESOURCE/NAME KEY_1=VAL_1 ... KEY_N=VAL_N</code></p>
</blockquote>
<p>check the official documentation <a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#-em-env-em-%60" rel="noreferrer">here</a></p>
<p>Another approach for runtime pods you can get into the Pod command line and change the variables in the runtime
RUN <code>kubectl exec -it &lt;pod_name&gt; -- /bin/bash</code>
Then
Run <code>export VAR1=VAL1 &amp;&amp; export VAR2=VAL2 &amp;&amp; your_cmd</code></p>
