<p>The pod is defined as:</p>
<pre class="lang-yaml prettyprint-override"><code>apiVersion: v1
kind: Pod
metadata:
  name: playground-pod
  labels:
    name: playground-pod
    app: playground-app
spec:
  containers:
  - name: playground
    image: localhost:5000/playground:1.8
    ports:
    - containerPort: 80
#    command:
#    - sh
#    - -c
#    args:
#    - cat /usr/share/nginx/html/env.js &amp;&amp; echo $REACT_APP_ENV_VARIABLE &amp;&amp; echo $REACT_APP_ENV_VARIABLE_TWO
    env:
    - name: REACT_APP_ENV_VARIABLE
      value: &quot;Variable from Kube!&quot;
    - name: REACT_APP_ENV_VARIABLE_TWO
      value: &quot;192.168.0.120&quot;
</code></pre>
<p>It serves a simple website when the commented lines remain commented, but when they are uncommented to log some data, the website doesn't appear at all.</p>
<p>The pod itself is running, it logs the data correctly, i.e. the variables get set up:</p>
<pre><code>kubectl logs playground-pod
window.env = {
  &quot;REACT_APP_ENV_VARIABLE&quot;: &quot;__ev1__&quot;,
  &quot;REACT_APP_ENV_VARIABLE_TWO&quot;: &quot;__ev2__&quot;
};Variable from Kube!
192.168.0.120
</code></pre>
<p>How to enable serving of the website, having at the same time possibility to manipulate data inside the created container?</p>

AbreQueVoy
<p>The Dockerimage has usually a default command that start the process inside. Its often the last line in the Dockerfile used to create the image.</p>
<p>the command option in the pod yaml overwrites that command to start the server in the Dockerfile. You could look that up and append that command to your command in the yaml file.</p>
