How to acces Google kubernetes cluster without googlecloud SDK?


I'm having trouble figuring out how I can set my kubectl context to connect to a googlecloud cluster without using the gcloud sdk. (to run in a controlled CI environment)

I created a service account in googlecloud Generated a secret from that (json format)

From there, how do I configure kubectl context to be able to interact with the cluster ?

-- sleipnir

1 Answer


Right in the Cloud Console you can find the connect link

gcloud container clusters get-credentials "your-cluster-name" --zone "desired-zone" --project "your_project"

But before this you should configure gcloud tool.

-- Dmitriy Shamenko
Source: StackOverflow