Comment on page
You can create a cluster either using the
gcloudCLI tool, or through the web UI—whichever you find more convenient.
gcloudthrows unexpected permission-related errors during this process, make sure you've been authenticated via
gcloud auth login.
Make sure to run
gcloud container clusters get-credentials [your-cluster-name]
to add an entry for your cluster to your local Kubernetes config.
If you run
kubectl config get-contexts, the table shown should include a context with a
CLUSTERequal to the cluster name you chose previously.
Select this context if it isn't already selected.
kubectl get nsto verify that you're able to connect to your cluster.
- Kubernetes Engine Developer
- Kubernetes Engine Cluster Viewer
These roles allow users to list all GKE clusters in a project and access the Kubernetes API and objects inside clusters.
To ensure that developers only have access to a single kubernetes cluster, create a separate project for that cluster.