A cloud engineer needs to establish a new Google Kubernetes Engine (GKE) environment and deploy a containerized microservice application from scratch using the Google Cloud CLI and `kubectl`. Arrange the following operational steps in the correct chronological sequence required to provision the infrastructure, configure local authentication context, deploy the workload, and verify successful deployment.
- 1Provision the GKE cluster using `gcloud container clusters create` with the target region, VPC subnetwork, and node pool flags.
- 2Authenticate the local environment and generate cluster endpoint configuration using `gcloud container clusters get-credentials`.
- 3Verify API server connectivity and worker node availability by executing `kubectl get nodes`.
- 4Deploy the application workload manifest to the cluster using `kubectl apply -f deployment.yaml`.
- 5Confirm workload health and successful replica rollout status using `kubectl rollout status deployment/web-app`.
Cevap
The correct operational sequence begins with provisioning the GKE cluster using `gcloud container clusters create`, followed by fetching credentials into `kubeconfig` via `gcloud container clusters get-credentials`, verifying cluster control plane access using `kubectl get nodes`, applying the application manifest with `kubectl apply -f deployment.yaml`, and finally confirming workload health using `kubectl rollout status deployment/web-app`.
Deploying workloads to Google Kubernetes Engine follows a logical multi-step workflow. First, cluster infrastructure must be provisioned (`gcloud container clusters create`). Second, administrative authentication credentials must be written to the local workstation context (`gcloud container clusters get-credentials`). Third, connectivity to the Kubernetes API server must be validated (`kubectl get nodes`). Fourth, the application workload definition must be submitted (`kubectl apply -f`). Finally, workload availability must be confirmed by checking rollout progress (`kubectl rollout status`).
Adım Adım Çözüm
Anahtar Kavram
GKE Workload Lifecycle and Command Sequence