Agent skill
castai-prod-checklist
Production readiness checklist for CAST AI cluster onboarding. Use when going live with CAST AI autoscaling, validating Phase 2 setup, or preparing for production cost optimization. Trigger with phrases like "cast ai production", "cast ai go-live", "cast ai checklist", "cast ai launch".
Install this agent skill to your Project
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/tree/main/plugins/saas-packs/castai-pack/skills/castai-prod-checklist
SKILL.md
CAST AI Production Checklist
Overview
Complete checklist for enabling CAST AI cost optimization on a production Kubernetes cluster. Covers Phase 1 (monitoring) through Phase 2 (full automation) with validation steps at each stage.
Prerequisites
- CAST AI tested on a staging cluster first
- Production API key (Full Access)
- Change management approval for node lifecycle changes
Phase 1: Monitoring Only
- Agent installed with read-only key
- Agent pod healthy:
kubectl get pods -n castai-agent - Console shows cluster as "Connected"
- Savings report generating (wait 24h for full data)
- Review savings estimate before enabling automation
Phase 2: Autoscaling Enabled
- Full Access API key provisioned and stored in secrets manager
- Cluster controller installed
- Evictor installed with conservative settings (non-aggressive)
- Spot handler installed for graceful interruption handling
- Autoscaler policies configured with appropriate limits:
-
clusterLimits.cpu.maxCoresset to safe ceiling -
unschedulablePods.headroomconfigured (10-15%) -
nodeDownscaler.emptyNodes.delaySeconds>= 300 for production -
spotInstances.spotDiversityEnabled= true
-
- Node templates created for workload-specific needs (GPU, high-memory)
- PodDisruptionBudgets set on all critical workloads
Workload Autoscaler
- Workload autoscaler installed
- Critical deployments annotated with min/max resource bounds
- Anti-shrink cooldown set (300s minimum)
- Memory headroom >= 20% for production workloads
Security
- API key in secrets manager (not Helm values files)
- Kvisor security agent installed
- Network policies applied to castai-agent namespace
- RBAC reviewed and minimized
- Key rotation scheduled (90-day interval)
Monitoring and Alerting
- Alert on agent pod restarts:
kube_pod_container_status_restarts_total{namespace="castai-agent"} - Alert on API errors in agent logs
- CAST AI console email notifications enabled
- Savings report reviewed weekly
- Dashboard tracking spot vs on-demand node ratio
Rollback Procedure
# Disable autoscaling immediately (keeps agent monitoring)
curl -X PUT -H "X-API-Key: ${CASTAI_API_KEY}" \
-H "Content-Type: application/json" \
"https://api.cast.ai/v1/kubernetes/clusters/${CASTAI_CLUSTER_ID}/policies" \
-d '{"enabled": false}'
# Or remove all CAST AI components
helm uninstall castai-evictor -n castai-agent
helm uninstall cluster-controller -n castai-agent
# Keep the agent for monitoring if desired
Validation Commands
# Final pre-go-live verification
echo "=== CAST AI Production Validation ==="
# Agent healthy
kubectl get pods -n castai-agent -o wide
# All components running
helm list -n castai-agent
# Policies correct
curl -s -H "X-API-Key: ${CASTAI_API_KEY}" \
"https://api.cast.ai/v1/kubernetes/clusters/${CASTAI_CLUSTER_ID}/policies" \
| jq '{enabled, unschedulablePods: .unschedulablePods.enabled, downscaler: .nodeDownscaler.enabled, spot: .spotInstances.enabled}'
# Savings estimate
curl -s -H "X-API-Key: ${CASTAI_API_KEY}" \
"https://api.cast.ai/v1/kubernetes/clusters/${CASTAI_CLUSTER_ID}/savings" \
| jq '{monthly: .monthlySavings, percent: .savingsPercentage}'
Resources
Next Steps
For version upgrades, see castai-upgrade-migration.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
dockerfile-generator
Dockerfile Generator - Auto-activating skill for DevOps Basics. Triggers on: dockerfile generator, dockerfile generator Part of the DevOps Basics skill category.
branch-naming-helper
Branch Naming Helper - Auto-activating skill for DevOps Basics. Triggers on: branch naming helper, branch naming helper Part of the DevOps Basics skill category.
readme-generator
Readme Generator - Auto-activating skill for DevOps Basics. Triggers on: readme generator, readme generator Part of the DevOps Basics skill category.
makefile-generator
Makefile Generator - Auto-activating skill for DevOps Basics. Triggers on: makefile generator, makefile generator Part of the DevOps Basics skill category.
gitignore-generator
Gitignore Generator - Auto-activating skill for DevOps Basics. Triggers on: gitignore generator, gitignore generator Part of the DevOps Basics skill category.
pre-commit-hook-setup
Pre Commit Hook Setup - Auto-activating skill for DevOps Basics. Triggers on: pre commit hook setup, pre commit hook setup Part of the DevOps Basics skill category.
Didn't find tool you were looking for?