<p>I'm creating an environment-variable with</p>

<pre><code> env :
        - name: GCE_ENV
          value: my-value
</code></pre>

<p>Is there a way to consume that from Java / Scala?</p>

<pre><code> "echo $GCE_ENV" !!
</code></pre>

<p>Did not grab it; I guess the JVM console session doesn't get it set?</p>

<p>Logging into the container did work </p>

<pre><code>kubectl exec -it POD -- /bin/bash
bash-4.3$ echo $GCE_ENV
my-value
</code></pre>

<p>Getting env variable from Java is done through: </p>

<pre><code>System.getenv("GCE_ENV")
</code></pre>
