
Answer-first summary for fast verification
Answer: gcloud container clusters get-credentials devops
To interact with your newly created GKE cluster 'devops', you must obtain authentication credentials. This is accomplished using the `gcloud` command, not `kubectl`. The correct syntax is `gcloud container clusters get-credentials devops`, which configures `kubectl` to use the specified cluster.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
After setting up a GKE cluster named 'devops', you need to obtain authentication credentials to interact with it. Which CLI command correctly achieves this? (Select One)
A
kubectl container clusters get-credentials devops
B
gcloud containers cluster get-credentials devops
C
gcloud container clusters get-credentials devops
D
kubectl containers cluster get-credentials devops
No comments yet.