Unable to connect GCP GKE cluster using client-go with GCP service account key

9/3/2019

Wants to connect GCP GKE cluster with GCP IAM service account without setting GOOGLE_APPLICATION_CREDENTIALS, gcloud and kubeconfig. Is there any way to initialize K8s client using kubernetes client-go sdk without setting the env variables, no gcloud and kubeconfig installed

As part of the tenant automation, we are creating projects, GCP IAM service accounts, service keys, attached roles to GCP IAM service account, including networking components like vpc, subnetworks and provisioning resources compute engine and GKE cluster. All these service clients have been initailized to use custom service account using JWT.Config. But k8s client is failing.

-- kalyanasish chanda
google-kubernetes-engine
kubernetes

0 Answers