| name | castai-upgrade-migration |
| description | Upgrade CAST AI Helm charts, Terraform provider, and agent components.
Use when upgrading CAST AI versions, checking for breaking changes,
or migrating between CAST AI agent releases.
Trigger with phrases like "upgrade cast ai", "update cast ai agent",
"cast ai helm upgrade", "cast ai terraform upgrade".
|
| allowed-tools | Read, Write, Edit, Bash(helm:*), Bash(terraform:*), Bash(kubectl:*) |
| version | 1.4.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","kubernetes","cost-optimization","castai"] |
| compatibility | Designed for Claude Code |
CAST AI Upgrade & Migration
Overview
Upgrade CAST AI components: Helm charts for the agent/controller/evictor, Terraform provider version, and workload autoscaler. Includes rollback procedures for each component.
Prerequisites
- Current CAST AI components installed
- Staging cluster for testing upgrades first
- Helm and kubectl access
- Change management approval for production
Instructions
Step 1: Check Current Versions
helm list -n castai-agent -o json | jq '.[] | {name: .name, chart: .chart, appVersion: .app_version}'
helm repo update
helm search repo castai-helm --versions | head -20
grep "castai/castai" .terraform.lock.hcl
terraform providers
Step 2: Review Changelog
Step 3: Upgrade on Staging First
helm upgrade castai-agent castai-helm/castai-agent \
-n castai-agent --reuse-values
helm upgrade cluster-controller castai-helm/castai-cluster-controller \
-n castai-agent --reuse-values
helm upgrade castai-evictor castai-helm/castai-evictor \
-n castai-agent --reuse-values
helm upgrade castai-workload-autoscaler castai-helm/castai-workload-autoscaler \
-n castai-agent --reuse-values
kubectl get pods -n castai-agent -w
Step 4: Upgrade Terraform Provider
# Update version constraint in versions.tf
terraform {
required_providers {
castai = {
source = "castai/castai"
version = "~> 7.5" # Update to target version
}
}
}
terraform init -upgrade
terraform plan -var-file=environments/staging.tfvars
terraform apply -var-file=environments/staging.tfvars