Google cloud container cluster environmental variables for secrets

11/24/2016

I am having really hard time figuring out how I am supposed to store secrets like keys, passwords etc. in google container cluster. I would like to use environmental variables for that if possible. What is the best approach?

-- Hnus
google-cloud-platform
google-kubernetes-engine

1 Answer

11/25/2016

You should use the Kubernetes secret object: "Secrets can be mounted as data volumes or be exposed as environment variables to be used by a container in a pod."

-- Robert Bailey
Source: StackOverflow