Access GKE Cluster¶
This section will guide you through getting access to your GKE cluster.
Overview
What You'll Need¶
- A configured management environment.
- An existing GKE cluster.
Procedure¶
Download credentials and configure the Kubernetes client:
root@rok-tools:~# gcloud container clusters get-credentials ${GKE_CLUSTER?} Fetching cluster endpoint and auth data. kubeconfig entry generated for arrikto-cluster.
Verify¶
Get the Kubernetes version and verify that your GKE cluster runs with Kubernetes 1.19.12:
root@rok-tools:~# kubectl version Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.18.19", GitCommit:"f3abc15296f3a3f54e4ee42e830c61047b13895f", GitTreeState:"clean", BuildDate:"2021-01-13T13:21:12Z", GoVersion:"go1.13.15", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"19+", GitVersion:"v1.19.16-gke.1500", GitCommit:"7ff69bffe6ce3957e61694cf0630ff0ec2b0b9e6", GitTreeState:"clean", BuildDate:"2021-11-17T09:29:36Z", GoVersion:"go1.15.15b5", Compiler:"gc", Platform:"linux/amd64"}
Get the list of nodes:
root@rok-tools:~# kubectl get nodes NAME STATUS ROLES AGE VERSION gke-arrikto-cluster-default-workers-a089030c-32wn Ready <none> 20m v1.19.16-gke.1500 gke-arrikto-cluster-default-workers-a089030c-7q2b Ready <none> 20m v1.19.16-gke.1500 gke-arrikto-cluster-default-workers-a089030c-gfc9 Ready <none> 20m v1.19.16-gke.1500
What's Next¶
The next step is to enable the Workload Identity feature on your GKE cluster.