<p>I am looking for something equivalent to SPRING_APPLICATION_JSON env variable of Docker Compose in Kubernetes Deployment yaml.</p>

<p>I am aware of that we can pass individual config as name-value pair. But there must be something through which all env variables can be passed in json or yaml format in Kubernetes.</p>

Infotechie
<p>You can use the following command:</p>

<pre><code>kubectl create cm env --from-file=SPRING_APPLICATION_JSON=./&lt;your-json&gt;.json
</code></pre>
