Access GKE Cluster

This section will guide you through getting access to your GKE cluster.


  1. 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.


  1. 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.12-gke.2100", GitCommit:"6d7f996b31f221c09b59426b03567e62061c7f46", GitTreeState:"clean", BuildDate:"2021-07-02T09:24:42Z", GoVersion:"go1.15.13b5", Compiler:"gc", Platform:"linux/amd64"}
  2. 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.12-gke.2100
    gke-arrikto-cluster-default-workers-a089030c-7q2b   Ready    <none>   20m   v1.19.12-gke.2100
    gke-arrikto-cluster-default-workers-a089030c-gfc9   Ready    <none>   20m   v1.19.12-gke.2100


You have successfully configured access to your GKE cluster.

What's Next

The next step is to enable the Workload Identity feature on your GKE cluster.