<p>I'm using a CI/CD pipeline to deploy a Node.js app on my Kubernetes cluster. Now, we use different sensible environment variables in local, and we would like to deploy them as environment variables within the cluster to be used by the different containers...</p>
<p>Which strategy should I go with?</p>
<p>TIA</p>

Fares
<p>There are many tools created in order to let you inject secret into kubernetes safely.</p>
<p>Natively you can use the &quot;Secrets&quot; object: <a href="https://kubernetes.io/docs/concepts/configuration/secret/" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/configuration/secret/</a>
And mount the secret as env var.</p>
<p>Alternatively, you can use some open source tools that make this process more secured by encrypting the secrets, here are some I recommend:
<a href="https://learnk8s.io/kubernetes-secrets-in-git" rel="nofollow noreferrer">https://learnk8s.io/kubernetes-secrets-in-git</a>
<a href="https://www.vaultproject.io/docs/platform/k8s" rel="nofollow noreferrer">https://www.vaultproject.io/docs/platform/k8s</a></p>
