Base Operator & Chart Installation (`infra-deploy-stack`)
1. Preconditions & Inputs
Before installing, upgrading, or uninstalling the base operators, check or ask the user for:
- Kubernetes Context & Prerequisites: Output of
kubectl config current-context, plus cluster/tool version requirements in## Prerequisites & Versionsof docs/quickstart.md. - Existing Cluster Components: Whether any prerequisite operators (
cert-manager,slurm-operator,JobSet,Kueue) are already installed (see the prerequisite installation section of docs/existing-infra.md). k8s-bridgeInstallation Method: Published OCI Helm chart (Branch A), local./helmchart with customIMG(Branch B), or Kustomize (Branch C).
2. Guardrails
- Confirmation gate: Show the target cluster context (
kubectl config current-context), target namespaces (cert-manager,slinky,jobset-system,kueue-system,k8s-bridge-system), and planned commands. Get user confirmation before installing, upgrading, or uninstalling releases. - Keep operator installation separate from CR and partition configuration: Only install or tear down cluster-level operators here; hand off to skills/infra-configure-crs/SKILL.md for Kueue CRs,
ComputeClassCRs, the Slinkyslurmrelease (slurm-values.yaml+ Lua plugins), andWorkloadMixingCRs. - Install
JobSetbeforeKueue: IfJobSetis installed afterKueue,JobSetobjects stay suspended until you restartkueue-controller-manager(kubectl -n kueue-system rollout restart deploy/kueue-controller-manager).
3. Step-by-Step Procedure
Step 1: Install Prerequisite Operators (`cert-manager`, `slurm-operator`, `JobSet` before `Kueue`, `Kueue`)
Follow the prerequisite installation section in docs/quickstart.md for a clean cluster, or docs/existing-infra.md to install only missing components.
Step 2: Install or Upgrade `k8s-bridge` (Select One Branch: A, B, or C)
- Branch A — Published OCI Helm Chart: Run the
helm install k8s-bridge(orhelm upgrade --install) command in thek8s-bridgeinstallation section of docs/quickstart.md. - Branch B — Build from Source & Install Local
./helmChart: Build and pushIMG=${REGISTRY}/k8s-bridge:${TAG}(make docker-build docker-push IMG=${REGISTRY}/k8s-bridge:${TAG}), apply updated CRDs when upgrading an existing release (kubectl apply --server-side --force-conflicts -f helm/crds/; see README.md), then runhelm upgrade --install k8s-bridge ./helm --namespace k8s-bridge-system --create-namespace -f ./helm/values.yaml --set image.repository=${REGISTRY}/k8s-bridge --set image.tag=${TAG} --wait(make helm-installuses defaulthelm/values.yamland ignoresIMG). - Branch C — Kustomize Deploy (Alternative to Helm): Build and push
IMGas in Branch B, then runmake install && make deploy IMG=$IMG(make deploymutatesconfig/manager/kustomization.yaml; restore viamake version-syncorgit checkout -- config/manager/kustomization.yamlbefore committing).
(Stop here after Step 2 and proceed to Section 4 Verification when installing or upgrading. Do not run Step 3 unless the user asked to uninstall the operators.)
Step 3: Base Operator Stack Teardown (Run ONLY When Requested to Uninstall)
First complete CR and Slurm release teardown via skills/infra-configure-crs/SKILL.md (Step 4). Then, after user confirmation, uninstall k8s-bridge (or make undeploy uninstall for Branch C) and the prerequisite operators in reverse order as shown in the cleanup section of docs/quickstart.md or docs/existing-infra.md.
4. Verification
- Verify all operator deployments (
cert-manager,slurm-operator,jobset-controller-manager,kueue-controller-manager, andk8s-bridge-controller-manager) have rolled out and areAvailable. - Verify
kubectl get crd workloadmixings.k8s-bridge.x-k8s.iosucceeds.
5. Handoffs & Related Skills
- Next step — Configure and apply Kueue CRs, GKE
ComputeClassCRs, the Slinkyslurmcluster (slurm-values.yaml+ Lua plugins), andWorkloadMixingCRs (CPU, GPU, priority): Read skills/infra-configure-crs/SKILL.md. - To create or update GKE clusters and autoscaling CPU (CCC) or GPU (DWS Flex-start) node pools: Read skills/infra-provision-cluster/SKILL.md.
- To run the automated Kind CPU or GKE GPU E2E test suites: Read skills/test-e2e-cluster/SKILL.md.