Provide access to GKE cluster
Jump to navigation
Jump to search
0) Install tools:
1) Configure account and project and service account
gcloud config set account your-accountgcloud config set project YOUR-PROYECTgcloud auth activate-service-account --key-file(gcloud auth)
2) Provider GKE access: Kubernetes Engine Cluster Viewer, Kubernetes Engine Developer, Kubernetes Engine Cluster Admin
- Provider appropriate role: GKE roles
3) Get credentials for ~/.kube/config
4) Verify, list clusters and pods:
YOUR_ACCOUNT="XXXXX" YOUR_PROJECT="YYYY" brew install --cask google-cloud-sdk && gcloud components install gke-gcloud-auth-plugin && gcloud config set account "$YOUR_ACCOUNT" && gcloud config set project "$YOUR_PROJECT" .../...
Related[edit]
See also[edit]
- GKE, Features: Autopilot,
gcloud container, gke-gcloud-auth-plugin, GKE release channels, GKE Ingress, GCP Node logs, GCP Node logs severity Error, GKE roles, Provide access to GKE cluster, Deploy GKE cluster using Terraform,cluster_autoscaling, addons_config, GKE Node Pool, node auto-provisioning, GKE authentication, GKE security, publicEndpoint, Workload Identity Federation
Advertising: