<p>I have a spring boot app that has an application YAML file (src/main/resources/).</p>
<pre><code>app:
  props:
    -
      key1: value
      key2: value
    - 
      key3: value
      key4: value
    -
      key5: value
      key6: value
</code></pre>
<p>I want to override the entire list of <code>props</code> in the deployment's env section (k8s). is there any way to do it in Kubernetes?</p>

Bhushan
<p>Spring will automatically allow you to override properties via environment variables.</p>
<p>So if you want to change key3, then all you need to do is to create an environment variable called: APP_PROPS_1_KEY3 and you can override this value. This can be done via K8.</p>
<p>More here: <a href="https://stackoverflow.com/a/58186093/5563263">https://stackoverflow.com/a/58186093/5563263</a></p>
