Install From K8s Operator
Despite the complex binary installation, using k8s operator is a better way to install slurm.
Source code could be found from https://github.com/AaronYang0628/slurm-on-k8s
Prequisites
Installation
deploy slurm operator
kubectl apply -f https://raw.githubusercontent.com/AaronYang0628/helm-chart-mirror/refs/heads/main/templates/slurm/operator_install.yamlcheck operator status
kubectl -n slurm get podapply CRD slurmdeployment
kubectl apply -f https://raw.githubusercontent.com/AaronYang0628/helm-chart-mirror/refs/heads/main/templates/slurm/slurmdeployment.zj.values.yamlcheck operator status
kubectl get slurmdeployment kubectl -n slurm logs -f deploy/slurm-operator-controller-manager # kubectl get slurmdep # kubectl -n test get podsupgrade slurmdep
kubectl edit slurmdep lensing # set SlurmCPU.replicas = 3