Cloud Cluster & Node Pool Provisioning (`infra-provision-cluster`)
1. Preconditions & Inputs
Before running gcloud or kubectl label commands, check or ask the user for:
PROJECT_ID,LOCATION(zone or region), andCLUSTER_NAME.- Provisioning Mode:
- Option A — Standard CPU Cluster / Node Pool or GKE Custom Compute Classes (CCC): Standard GKE cluster/node pool (docs/quickstart.md) or GKE CCC with Node Auto-Provisioning (docs/gke/ccc.md).
- Option B — GKE Cluster with DWS Flex-Start GPU Node Pool: docs/gke/gpu-dws-workloads.md.
- Option C — Pre-Provisioned GPU Nodes:
## Prerequisitesin docs/gpu-workloads.md.
2. Guardrails
- Confirmation gate before billable cloud actions: Show the
gcloud container clustersorgcloud container node-poolscommand (includingPROJECT_ID,LOCATION, machine types, and node limits) and get user approval before running it. - Keep cluster creation separate from operator and CR installation: Only provision cloud clusters/node pools and node labels here; use
infra-deploy-stackfor operators andinfra-configure-crsfor CRs. - Verify GKE version requirements in the target guide: Check the cluster creation section in docs/gke/ccc.md or docs/gke/gpu-dws-workloads.md.
- Install GPU drivers for CUDA workloads:
test/e2e/infra/gke-gpu-cluster-setup.shomits GPU drivers; for CUDA /nvidia-smiworkloads, includegpu-driver-version=defaultin--accelerator(docs/gke/gpu-dws-workloads.md).
3. Step-by-Step Procedure
Branch Selection: Select Option A (Step 1), Option B (Step 2), or Option C (Step 3). Run Step 4 only when asked to resize or delete a cloud cluster or node pool.
Step 1: Option A — Create or Update a Standard CPU Cluster / Node Pool or GKE CCC Cluster
After user confirmation, create or resize the standard GKE cluster/node pool, or run the gcloud commands in the cluster creation section of docs/gke/ccc.md.
Step 2: Option B — Create a GKE Cluster and DWS Flex-Start GPU Node Pool
After user confirmation, run the gcloud cluster and node pool creation commands in docs/gke/gpu-dws-workloads.md.
Step 3: Option C — Verify and Label Pre-Provisioned GPU Nodes
Follow ## Prerequisites in docs/gpu-workloads.md to verify nvidia.com/gpu allocatable capacity and ensure the GPU model label matched by WorkloadMixing.spec.mappedResources[].nodeSelectors is present.
Step 4: Cloud Cluster or Node Pool Teardown (Run ONLY When Requested to Delete Cloud Infra)
First remove in-cluster CRs (infra-configure-crs) and operators (infra-deploy-stack). After user confirmation, follow the cleanup section of docs/gke/ccc.md or docs/gke/gpu-dws-workloads.md (or run gcloud container node-pools delete <GPU_NODE_POOL_NAME> --cluster=<CLUSTER_NAME> --location=<LOCATION> --project=<PROJECT_ID> to delete only a node pool).
4. Verification
- Confirm
kubectl config current-contexttargets the cluster and the cluster/node pools areRUNNING(CCC and DWS Flex-start--num-nodes=0 --min-nodes=0scale from 0 on workload admission; pre-provisioned GPU nodes immediately exposenvidia.com/gpucapacity and thenodeSelectorslabel).
5. Handoffs & Related Skills
- Next step — Install the base operators (
cert-manager,slurm-operator,JobSet,Kueue,k8s-bridge): Read skills/infra-deploy-stack/SKILL.md. - After base operators are installed — Configure and apply
ComputeClass, Kueue, Slinkyslurmpartition, andWorkloadMixingCRs: Read skills/infra-configure-crs/SKILL.md. - To run the automated GKE GPU E2E test suite: Read skills/test-e2e-cluster/SKILL.md.