<p>I am running python application on K8s cluster in Stateless mode.</p>

<p>Right now we are using configmap &amp; secret to store environment variables data. Using configmap and Secrets adding an environment variable to container os and application get it from os.</p>

<pre><code>app.config['test'] = os.environ.get("test")
</code></pre>

<p>To use best practices we are planning to use vault from hashicrop. SO can i populate the config map ? Or direct add the values to container OS so that from os application can get it. No plan to use the volume to populate the variables as using stateless images.</p>

<p>Can someone also please share a document or blog. Thanks in advance.</p>

Harsh Manvar
<p>You can check <a href="https://learn.hashicorp.com/vault/identity-access-management/vault-agent-k8s" rel="nofollow noreferrer">Vault Agent with Kubernetes</a>. You may have to do some Kubernetes distro specific steps as well. </p>
