awslabs/awsome-distributed-ai/deploy-slurm-cluster
Claude Code and agent skill by awslabs/awsome-distributed-ai
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Install cert-manager, AWS LB Controller (Pod Identity), MariaDB, Slurm operator, and Slurm cluster on HyperPod EKS using install.sh, including subnet tagging and NLB configuration for SSH access
Install
npx vskill@latest install awslabs/awsome-distributed-ai/deploy-slurm-clusterSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as awslabs/awsome-distributed-ai/deploy-slurm-cluster.
Deploy Slurm Cluster
Overview
Use this skill to deploy the Slurm cluster on a HyperPod EKS cluster. This is Phase 3 of the slinky-slurm deployment workflow and represents the final step to get a running Slurm cluster with SSH access.
The install.sh script orchestrates:
- Running
setup.sh(unless--skip-setup) - Installing cert-manager (v1.19.2)
- Tagging public subnets for internet-facing NLBs
- Installing the AWS Load Balancer Controller (chart v1.11.0) with Pod Identity
- Applying FSx Lustre PV/PVC
- Installing MariaDB operator and instance
- Installing the Slurm operator (Slinky)
- Installing the Slurm cluster via Helm
- Configuring NLB for SSH login access
- Waiting for the NLB endpoint
Prerequisites
- Phase 1 complete: HyperPod EKS infrastructure deployed (
deploy.sh) - env_vars.sh exists: Generated by
deploy.sh, providesEKS_CLUSTER_NAME
and VPC_ID (required for LB Controller and subnet tagging)
- EBS CSI driver installed: With a
gp3StorageClass (required for
MariaDB and Slurm persistent volumes). See the HyperPod EBS CSI docs.
- kubectl configured: Context points to the correct EKS cluster
- Helm installed:
helmcommand available - curl installed: Used for public IP detection and IAM policy download
- slurm-values.yaml: Generated by
setup.sh(or pass flags to let
install.sh run setup.sh automatically)
See the deployment-preflight skill for detailed prerequisite validation.
Steps
Step 1: Choose how to run install.sh
Full install (runs setup.sh internally):
Skip setup (slurm-values.yaml already exists):
WARNING: --skip-setup requires that slurm-values.yaml already exists in the project directory. The script will fail if it's missing.
Step 2: Wait for completion
install.sh will:
- Install cert-manager and wait for webhook readiness
- Tag public subnets with
kubernetes.io/role/elb=1 - Create IAM policy/role for LB Controller (Pod Identity), install chart
- Apply FSx Lustre PV/PVC
- Install MariaDB (waits up to 5 minutes for readiness)
- Install Slurm operator
- Install Slurm cluster
- Configure NLB (waits up to 5 minutes for endpoint)
- Print the SSH command
Total time: approximately 5-10 minutes after setup.sh completes.
Step 3: Connect to the login node
What install.sh Does Internally
Phase A: Setup (unless --skip-setup)
Calls setup.sh with pass-through flags:
All --instance-type, --instance-count, --infra, --repo-name, --tag, --local-build, --skip-build, and --region flags are passed through to setup.sh.
If --skip-setup is specified, verifies slurm-values.yaml exists.
Phase B: Source env_vars.sh
Sources env_vars.sh (generated by deploy.sh) to get EKS_CLUSTER_NAME and VPC_ID. Both are required — the script exits with an error if either is missing.
Phase C: cert-manager Installation
- Adds the jetstack Helm repo
- Installs
cert-managerchart (v1.19.2) incert-managernamespace - Waits for the cert-manager webhook deployment to be Available (120s
timeout)
The webhook wait prevents race conditions with components that create Certificate resources at install time (e.g., the Slurm operator).
Phase D: Public Subnet Tagging
Tags all public subnets in the VPC with kubernetes.io/role/elb=1. The AWS LB Controller requires this tag to discover subnets for internet-facing NLBs. The HyperPod CFN template does not add this tag.
Phase E: AWS Load Balancer Controller Installation
Uses Pod Identity (not IRSA/eksctl) for IAM:
- Creates IAM policy
AWSLoadBalancerControllerIAMPolicy_slinky(from
upstream v2.11.0 policy JSON)
- Creates IAM role
AmazonEKS_LB_Controller_Role_slinkywith
pods.eks.amazonaws.com trust policy
- Attaches the policy to the role
- Creates a Pod Identity association for the
aws-load-balancer-controller service account in kube-system
- Installs the
aws-load-balancer-controllerHelm chart (v1.11.0) - Waits for the LB Controller deployment to be Available (120s timeout)
Phase F: FSx Lustre PV/PVC
Applies the pre-generated lustre-pvc-slurm.yaml (rendered from lustre-pvc-slurm.yaml.template by setup.sh) which creates a static PersistentVolume and PersistentVolumeClaim pointing to the FSx filesystem provisioned by the HyperPod CFN stack.
Phase G: MariaDB Installation
- Adds the mariadb-operator Helm repo
- Installs
mariadb-operatorchart (v25.10.4) inmariadbnamespace - Applies
mariadb.yaml(MariaDB custom resource inslurmnamespace) - Waits for MariaDB to be Ready (up to 300s timeout)
Phase H: Slurm Operator Installation
- Deletes stale CRDs if upgrading from an older version
- Installs
slurm-operatorOCI chart (v1.0.1) inslinkynamespace
Phase I: Slurm Cluster Installation
Installs the slurm OCI chart (v1.0.1) with the generated values file:
Phase J: NLB Configuration
- Waits for the
slurm-login-slinkyservice to exist - Gets the caller's public IP via
curl https://checkip.amazonaws.com - Renders
slurm-login-service-patch.yamlfrom the template (substitutes
${ip_address} for NLB source range restriction)
- Patches the service with NLB annotations
- Polls for the NLB hostname (up to 60 iterations, 5s apart = 5 minutes)
Command Reference
Verification
After install.sh completes, verify with:
See the validate-deployment skill for comprehensive post-deployment validation.
Troubleshooting
| Symptom | Cause | Fix | |
|---|---|---|---|
| cert-manager webhook timeout | CRDs not installed or resource constraints | Check: kubectl -n cert-manager get pods; verify --set crds.enabled=true | |
LB Controller unable to resolve at least one subnet | Public subnets missing kubernetes.io/role/elb=1 tag | Run the subnet tagging step in install.sh or tag manually | |
| Pod Identity association fails | EKS Pod Identity addon not enabled | Enable via: aws eks create-addon --cluster-name <name> --addon-name eks-pod-identity-agent | |
| MariaDB wait times out | EBS CSI driver not installed or gp3 StorageClass missing | Check: kubectl get sc gp3; see HyperPod EBS CSI docs | |
| Slurm operator install fails | OCI registry unreachable | Verify: helm show chart oci://ghcr.io/slinkyproject/charts/slurm-operator --version 1.0.1 | |
slurm-values.yaml not found with --skip-setup | Values file not generated | Run setup.sh first, or remove --skip-setup | |
EKS_CLUSTER_NAME not set | env_vars.sh missing or not sourced | Run deploy.sh first, or manually create env_vars.sh | |
| NLB hostname not available | NLB provisioning still in progress | Wait 2-3 minutes and check: kubectl get svc slurm-login-slinky -n slurm | |
| SSH connection refused | NLB not fully provisioned or SSH key mismatch | Wait for NLB DNS to propagate; verify key: ssh -i ~/.ssh/id_ed25519_slurm -v root@<hostname> | |
| Helm install says "already installed" | Idempotent check -- previous install exists | To reinstall: helm uninstall slurm -n slurm then re-run | |
| CRD conflicts during upgrade | Stale CRDs from older Slinky version | Script handles this (deletes stale CRDs automatically) | |
curl: checkip.amazonaws.com fails | No internet access from the machine | Manually set IP and render the patch template |
References
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingarchitectures/sagemaker-hyperpod-eks/slinky-slurm/.opencode/skills/deploy-slurm-cluster/SKILL.md
Popularity
- Repository stars
- 480
- Repository forks
- 207
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/awslabs/awsome-distributed-ai/deploy-slurm-cluster)