Mount configmap from GoogleCloudStorage into Google Kubernetes Engine pod

6/19/2019

In a multi-tenant environment, I'd like to put several configmap (each for customer) into GoogleCloudStorage bucket, and recall a precise configmap in the deployment yaml by using an environment variable (same name as the configmap), without using a startup script. Is it possible to do by using yaml or other ways?

-- duns
google-cloud-platform
google-kubernetes-engine

1 Answer

6/19/2019

If there's a distinguishing name of the customer (e.g. namespace) available you can have that as env var in yaml via downward api. Then in your entrypoint you could construct the url.

-- eamon1234
Source: StackOverflow