A cloud engineer needs to deploy a containerized application to a newly provisioned Google Kubernetes Engine (GKE) cluster from a local workstation. What is the correct sequence of steps to configure cluster access, deploy the workload, and verify pod execution?
- 1Fetch cluster authentication credentials and endpoint details using `gcloud container clusters get-credentials web-cluster --zone us-central1-a`.
- 2Submit the application deployment manifest to the cluster by running `kubectl apply -f deployment.yaml`.
- 3Inspect the status of the deployed workload pods using `kubectl get pods`.
Answer
The correct sequence is: 1) Fetch cluster credentials using `gcloud container clusters get-credentials`, 2) Deploy the workload using `kubectl apply -f deployment.yaml`, and 3) Verify pod execution using `kubectl get pods`.
The workflow begins with configuring local cluster credentials via `gcloud container clusters get-credentials`, followed by creating cluster objects using `kubectl apply -f deployment.yaml`, and concludes by checking container state with `kubectl get pods`.
Step-by-Step Solution
Key Concept
Deploying workloads to Google Kubernetes Engine requires establishing CLI cluster context with gcloud container clusters get-credentials prior to applying resource manifests and inspecting pod status with kubectl.
Estimated Time:1m 0s