<p>here's the problem. I've a Pod running in my cluster with angular. I want to use a System Variable in Dockers entrypoint. It would be very helpful for my use case.</p>

<p>According to my understanding the entrypoint is executed as soon as you pull the image in Kubernetes.  </p>

<p>So my idea is to use a system variable in Dockers Entrypoint which will be initialized later during deployment. Kubernetes set the system variable and AFTER this, the entrypoint should be execute. </p>

<p>Do you have experience or do you see a mistake here?</p>

<p>Thanks for your help</p>

goku736
<p>You can reference environment variables in command and args.</p>

<p>From <a href="https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/</a></p>

<pre><code>env:
- name: MESSAGE
  value: "hello world"
command: ["/bin/echo"]
args: ["$(MESSAGE)"]
</code></pre>
