You used the gcloud container clusters command to create two Google Cloud Kubernetes (GKE) clusters: prod-cluster and dev-cluster. β’ prod-cluster is a standard cluster. β’ dev-cluster is an auto-pilot cluster. When you run the kubectl get nodes command, you only see the nodes from prod-cluster. Which commands should you run to check the node status for dev-cluster?
- Agcloud container clusters get-credentials dev-clusterkubectl get nodes (correct answer)
- Bgcloud container clusters update -generate-password dev-cluster kubectl get nodes
- Ckubectl config set-context dev-clusterkubectl cluster-info
- Dkubectl config set-credentials dev-clusterkubectl cluster-info
Reveal answer & explanationHide answer
The correct answer is A. Option A: gcloud container clusters get-credentials dev-clusterkubectl get nodes.