A cloud administrator is tasked with deploying an updated application deployment manifest (`deployment.yaml`) to an existing Google Kubernetes Engine (GKE) cluster from a new administrative workstation. Which TWO actions must the administrator perform to authenticate their environment and deploy the workload successfully? (Select TWO)
- Execute `gcloud container clusters get-credentials CLUSTER_NAME --zone ZONE` to retrieve cluster endpoint and authentication credentials into kubeconfig.Answer
- Execute `kubectl apply -f deployment.yaml` to submit the workload configuration to the Kubernetes API server.Answer
- CExecute `gcloud config set container/cluster CLUSTER_NAME` to authorize `kubectl` command execution against the cluster API server.
- DExecute `gcloud container node-pools update --enable-autopilot` to convert the cluster mode before running `kubectl` commands.
Answer
The correct actions are to retrieve the cluster credentials using `gcloud container clusters get-credentials` and then apply the manifest using `kubectl apply -f deployment.yaml`.
To manage and deploy workloads to GKE, an administrator must first populate local kubeconfig credentials using `gcloud container clusters get-credentials`. Once authenticated, standard Kubernetes commands like `kubectl apply -f deployment.yaml` are used to apply workload configurations.
Step-by-Step Solution
Key Concept
GKE Cluster Credential Retrieval and Workload Deployment