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".
What this skill does
# 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.maxCores` set to safe ceiling
- [ ] `unschedulablePods.headroom` configured (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
```bash
# 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
```bash
# 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
- [CAST AI Autoscaler Checklist](https://docs.cast.ai/docs/autoscaler-checklist)
- [CAST AI Status](https://status.cast.ai)
## Next Steps
For version upgrades, see `castai-upgrade-migration`.
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.