
Answer-first summary for fast verification
Answer: Ask the developers to install the gcloud CLI on their workstation and run gcloud container clusters get-credentials to switch to another cluster.
The best practice recommended by Google for accessing multiple GKE clusters is to use the `gcloud container clusters get-credentials` command. This command automatically retrieves the credentials for the specified cluster and updates the local kubeconfig file with the correct context, user, and cluster information. Option C ensures developers install the gcloud CLI locally, allowing them to use their preferred workstation tools while securely managing authentication via IAM. Options A and B are less ideal: Cloud Shell (A) limits local tool usage, and manually sharing config files (B) bypasses secure credential handling. Option D is impractical for managing multiple clusters.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
As a developer managing multiple Google Kubernetes Engine (GKE) clusters on Google Cloud, how can you configure access for your team to seamlessly switch between clusters without disrupting their preferred development tools, while adhering to Google's recommended best practices?
A
Ask the developers to use Cloud Shell and run gcloud container clusters get-credential to switch to another cluster.
B
In a configuration file, define the clusters, users, and contexts. Share the file with the developers and ask them to use kubect1 contig to add cluster, user, and context details.
C
Ask the developers to install the gcloud CLI on their workstation and run gcloud container clusters get-credentials to switch to another cluster.
D
Ask the developers to open three terminals on their workstation and use kubect1 config to configure access to each cluster.
No comments yet.