Langkah 1 - Atur konteks Kubernetes Anda ke GKE
Langkah 1 - Autentikasi ke Instance/Project Google Cloud Anda
Autentikasi ke cluster GKE Anda dengan menggunakan perintah Google CLI berikut:
gcloud auth login or gcloud auth application-default login
Langkah 2 - Atur konteks Kubernetes Anda ke GKE
Atur konteks Kubernetes Anda ke cluster GKE Anda dengan masuk ke Google CLI.
gcloud projects list
gcloud config set project [project_id]
gcloud container clusters get-credentials [clusterName] --region [clusterregionName] --project [project_id]