Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

Slurm Operator

v1.1.1AI Applications

Kubernetes operator for deploying and managing Slurm clusters, nodesets, and loginsets on NKP.

Category
Scheduling and Orchestration
Scope
Workspace
Support status
Qualified
NKP version
NKP 2.18+
Version

Default configuration

Default Helm values for the selected version. All of these values can be customized at deploy time.

Overview

Slurm Operator runs Slurm on Kubernetes and manages the lifecycle of Slurm control-plane and worker components through Kubernetes-native custom resources. It is suitable for HPC and AI batch workloads that need Slurm scheduling with Kubernetes operations.

Key capabilities

  • Operator-managed Slurm cluster lifecycle on Kubernetes
  • NodeSet and LoginSet abstractions for worker and login node management
  • Supports StatefulSet and DaemonSet scaling modes for Slurm workers
  • CRD-driven upgrades and reconciliation for Slurm components

Dependencies

  • cert-manager (required) for certificate/webhook management used by the operator stack

Prerequisites

  • Cluster resources sized for control-plane and Slurm workloads

Resources

Documentation · Project · Helm Chart


Getting started

slurm-operator

Kubernetes operator for running and managing Slurm clusters on NKP.

Chart Source

The Slurm Operator chart is published natively as an OCI artifact.

Field Value
Chart OCI URL oci://ghcr.io/slinkyproject/charts/slurm-operator
Version See the active catalog version directory under applications/slurm-operator/

Dependencies

Dependency Type Notes
cert-manager hard (requiredDependencies) Required for certificate/issuer resources rendered by the chart

Deployment Notes

  • The catalog entry deploys the Helm release into a dedicated namespace: slurm-operator.
  • The catalog entry also installs slurm-operator-crds first, then deploys the main slurm-operator chart with a Flux dependsOn relationship.
  • Default values are provided by <version>/helmrelease/cm.yaml.
  • Validation overrides are in <version>/.bloodhound.yaml for cert-manager resource kinds.

E2E Smoke Test Validation

Use this flow to validate end-to-end functionality with an already deployed slurm-operator instance on the NKP cluster through Kommander. This smoke test does not reinstall the operator; it creates a temporary Slurm workload namespace, verifies scheduling works, then cleans up all temporary resources.

Set kubeconfig:

export KUBECONFIG=/path/to/workload-cluster.conf

Preflight checks for the deployed slurm-operator:

kubectl get pods -n slurm-operator
kubectl get certificate,issuer -n slurm-operator
kubectl api-resources --api-group=slinky.slurm.net

Create temporary smoke workload (reconciled by the existing operator):

kubectl create namespace slurm-smoke
helm upgrade --install slurm-smoke oci://ghcr.io/slinkyproject/charts/slurm \
  --version 1.1.1 \
  --namespace slurm-smoke \
  --set controller.persistence.enabled=false \
  --set nodesets.slinky.replicas=1 \
  --wait --timeout 12m
kubectl wait --for=condition=Ready pod -n slurm-smoke --all --timeout=8m

Validate Slurm scheduling path from the controller pod:

  • sinfo verifies Slurm sees the partition and worker node.
  • srun verifies an interactive job can be placed and executed immediately.
  • sbatch verifies batch submission/queueing/completion metadata.
# 1) Cluster view from Slurm (partitions + node state)
kubectl exec -n slurm-smoke slurm-smoke-controller-0 -- sinfo

# 2) Immediate scheduling check (should print worker hostname)
kubectl exec -n slurm-smoke slurm-smoke-controller-0 -- srun -N1 -n1 hostname

# 3) Batch job check with detailed status
kubectl exec -n slurm-smoke slurm-smoke-controller-0 -- sh -lc \
  'JOBID=$(sbatch --parsable --wrap="hostname"); echo JOBID=$JOBID; \
   squeue -j "$JOBID" || true; \
   scontrol show job "$JOBID"; \
   sacct -j "$JOBID" --format=JobID,State,ExitCode -n || true'

Expected result:

  • sinfo shows a schedulable node (for example slinky-0).
  • srun returns a worker hostname.
  • scontrol show job reports JobState=COMPLETED and ExitCode=0:0.
  • squeue may show the job briefly in queue/running states before completion.
  • sacct may print Slurm accounting storage is disabled in minimal smoke setups; this is expected when accounting is not configured.

Cleanup:

helm uninstall slurm-smoke -n slurm-smoke
kubectl delete namespace slurm-smoke
kubectl get controllers,nodesets,loginsets,restapis -A
kubectl get pods -n slurm-operator

Links