Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How can I get images and environment variables from GKE(GCP) using cloud function(python)?

 

I need to get images and environment variables from GKE cluster using python. I`ve already seen the python container library for gcp, but it seems like there is no such logic as I need https://github.com/googleapis/python-container, https://cloud.google.com/kubernetes-engine/docs/reference/libraries#create-service-account-gcloud. This lib can help with getting clusters, but I cannot see something about cluster-info.

Is my task possible with this lib? Or, if not please advice something.

What I need to do? To create the cloud function that will get parameters such as cluster, zone or something(don`t know now) and return the images, environment variables and maybe something else in response.

Please provide the sample or some useful links to my question.

0 1 853
1 REPLY 1

Top Labels in this Space
Top Solution Authors