Kubernetes Deep Dive

Sign Up Free or Log In to participate!

How do you connect kubectl to Google GKE?

I have gcloud installed but how do I get kubectl on my Windows machine to my Google GKE cluster?

2 Answers

1. Go into interface and enable kubernetes engine

2. Once enabled from commandline 

$gcloud init

$gcloud container clusters create learnk8s

If you have a running cluster, you can use the following to fetch its credentials (to update $HOME/.kube/config with the API server address + CA/Client Cert):

gcloud container clusters get-credentials

On AKS it’s similar:

az aks get-credentials
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?