Google 秘密的云容器集群环境变量
Google cloud container cluster environmental variables for secrets
我真的很难弄清楚我应该如何在 google 容器集群中存储密钥、密码等秘密。如果可能的话,我想为此使用环境变量。什么是最好的方法?
您应该使用 Kubernetes secret 对象:"Secrets can be mounted as data volumes or be exposed as environment variables to be used by a container in a pod."
我真的很难弄清楚我应该如何在 google 容器集群中存储密钥、密码等秘密。如果可能的话,我想为此使用环境变量。什么是最好的方法?
您应该使用 Kubernetes secret 对象:"Secrets can be mounted as data volumes or be exposed as environment variables to be used by a container in a pod."