A cloud engineering team is provisioning a new node pool in an existing GKE Standard cluster specifically to execute fault-tolerant, stateless batch processing jobs. The team needs to minimize compute costs for these workloads while ensuring nodes can be preempted if Google Cloud requires the capacity. Which configuration should they select when creating the node pool?
- Enable Spot VMs on the new node pool.Answer
- BConfigure Horizontal Pod Autoscaler (HPA) to scale the node pool instance count.
- CMigrate the workload to a GKE Autopilot cluster configured with custom node kernel parameters.
- DDeploy the workload manifest using kubectl before authenticating with gcloud container clusters get-credentials.
Answer
Enabling Spot VMs on the new node pool is the Google-recommended approach for running cost-effective, fault-tolerant batch workloads in GKE.
Enabling Spot VMs on a GKE node pool allows stateless and interruption-tolerant workloads to run on spare compute capacity at a steep discount, achieving maximum cost savings for batch processing.
Step-by-Step Solution
Key Concept
GKE Spot VM Node Pools for Batch Processing