An enterprise telemetry engineering team is designing a scalable batch data processing pipeline on Google Cloud. The workload requires custom Linux kernel parameters (`sysctl` settings) on the underlying cluster nodes to handle high network socket churn. The batch processing jobs are fully fault-tolerant and can recover gracefully from node terminations. Additionally, a cloud engineer needs to configure a new administrator workstation to manage workloads on this newly provisioned cluster. Which deployment and configuration strategy satisfies all requirements while following Google Cloud best practices?
- ADeploy a GKE Autopilot cluster configured with Spot Pods, and execute `kubectl apply -f deployment.yaml` directly from the administrator workstation.
- BDeploy a GKE Standard cluster with a Spot node pool using custom node configuration flags, set the default cluster property using `gcloud config set container/cluster <cluster-name>`, and execute `kubectl apply -f deployment.yaml`.
- Deploy a GKE Standard cluster containing a Spot VM node pool configured with custom `sysctl` node settings, fetch cluster credentials using `gcloud container clusters get-credentials <cluster-name>`, and execute `kubectl apply -f deployment.yaml`.Answer
- DDeploy a GKE Standard cluster with a standard, non-preemptible node pool configured with custom sysctl settings, run `kubectl config set-cluster` to establish cluster connectivity, and execute `kubectl apply -f deployment.yaml`.
Answer
Deploy a GKE Standard cluster containing a Spot VM node pool configured with custom `sysctl` node settings, fetch cluster credentials using `gcloud container clusters get-credentials <cluster-name>`, and execute `kubectl apply -f deployment.yaml`.
The correct strategy leverages GKE Standard to allow custom node kernel modifications (`sysctl`), uses Spot VM node pools to minimize compute cost for fault-tolerant batch jobs, and uses `gcloud container clusters get-credentials` to generate the necessary `kubeconfig` credentials for workstation `kubectl` access.
Step-by-Step Solution
Key Concept
GKE Cluster Mode Selection, Spot Node Pool Usage, and Kubeconfig Context Generation