castai

by Cast AI

Helm chartv0.47.21Verified publisher

Umbrella chart for CAST AI components.

About this chart

castai

Umbrella chart for CAST AI components.

Requirements

RepositoryNameVersion
file://charts/autoscaler-anywhereautoscaler-anywhere*
file://charts/autoscaler-openshiftautoscaler-openshift*
file://charts/autoscalerautoscaler*
file://charts/kentkent*
file://charts/readonly-profilereadonly-profile*

Usage

This chart bundles three independent product profiles. Enable exactly one per install.

BundleEnabled byTarget clustersComponents
autoscalertags.<mode>=trueEKS, AKS, GKE (standard modes)Mode-dependent — see Autoscaler
autoscaler-anywheretags.autoscaler-anywhere=trueAll other clusters (bare metal, on-prem, edge, GKE Autopilot, etc.)castai-agent, castai-cluster-controller, castai-workload-autoscaler, castai-workload-autoscaler-exporter, castai-evictor, castai-pod-mutator
kentkent.enabled=trueEKS onlycastai-agent, castai-cluster-controller, castai-kentroller, castai-workload-autoscaler, castai-live, castai-pod-mutator

Not sure which bundle applies to your cluster? See the Cast AI documentation for a full guide.


Autoscaler

For standard EKS, AKS, and GKE clusters. Select exactly one mode tag — each tag enables a fixed set of components on top of the base observability stack.

Modes

TagComponentsPurpose
readonlycastai-agent, castai-spot-handler, castai-kvisor, gpu-metrics-exporterObservability only — no cluster changes
node-autoscalercastai-agent, castai-spot-handler, castai-kvisor, gpu-metrics-exporter, castai-cluster-controller, castai-evictor, castai-pod-mutator, castai-pod-pinner, castai-liveNode provisioning and bin-packing
workload-autoscalercastai-agent, castai-spot-handler, castai-kvisor, gpu-metrics-exporter, castai-cluster-controller, castai-evictor, castai-pod-mutator, castai-workload-autoscaler, castai-workload-autoscaler-exporterVertical pod autoscaling
fullcastai-agent, castai-spot-handler, castai-kvisor, gpu-metrics-exporter, castai-cluster-controller, castai-evictor, castai-pod-mutator, castai-pod-pinner, castai-live, castai-workload-autoscaler, castai-workload-autoscaler-exporterNode + workload autoscaling

Install

helm repo add castai-helm https://castai.github.io/helm-charts
helm repo update

helm upgrade --install castai castai-helm/castai \
  --namespace castai-agent --create-namespace \
  --set global.castai.apiKey=<YOUR_API_KEY> \
  --set global.castai.apiURL=https://api.cast.ai \
  --set global.castai.provider=<eks|aks|gke> \
  --set tags.readonly=true

Replace tags.readonly with the desired mode tag (node-autoscaler, workload-autoscaler, or full).

Using an external secret (Sealed Secrets / ESO / Vault)

If you manage secrets externally, pre-create a Secret and pass its name as apiKeySecretRef instead of apiKey:

kubectl create namespace castai-agent
kubectl create secret generic my-castai-credentials \
  --namespace castai-agent \
  --from-literal=API_KEY=<YOUR_API_KEY>

helm upgrade --install castai castai-helm/castai \
  --namespace castai-agent --create-namespace \
  --set global.castai.apiKeySecretRef=my-castai-credentials \
  --set global.castai.apiURL=https://api.cast.ai \
  --set global.castai.provider=<eks|aks|gke> \
  --set tags.readonly=true

The Secret must contain a key named API_KEY and be in the same namespace as the release. apiKey and apiKeySecretRef are mutually exclusive. The default value for apiKeySecretRef is castai-credentials, but any Secret name is accepted.

Using ExternalSecret (External Secrets Operator)

If you use the External Secrets Operator, you can provision a credentials secret directly from your secret store using extraObjects — no manual kubectl create secret step required.

global:
  castai:
    apiKey: ""                          # leave empty — ExternalSecret creates the secret
    apiKeySecretRef: castai-credentials # any name — must match target.name below
    apiURL: "https://api.cast.ai"
    provider: eks

tags:
  full: true

extraObjects:
  - apiVersion: external-secrets.io/v1beta1
    kind: ExternalSecret
    metadata:
      name: castai-api-key-sync
    spec:
      refreshInterval: 1h
      secretStoreRef:
        name: my-secret-store           # your SecretStore or ClusterSecretStore name
        kind: SecretStore
      target:
        name: castai-credentials        # must match global.castai.apiKeySecretRef
        creationPolicy: Owner
      data:
        - secretKey: API_KEY            # must be exactly this
          remoteRef:
            key: castai/api-key         # path in your secret store

The ExternalSecret is rendered into the same namespace as the release. All subcharts will find the secret named by global.castai.apiKeySecretRef automatically.

Accepted mode upgrade paths

Upgrades add components; downgrades are not supported because removing active controllers can leave the cluster in an inconsistent state. If you need to move to a lower mode, uninstall the release first and re-install with the target mode.

From \ Toreadonlynode-autoscalerworkload-autoscalerfull
readonly—✓✓✓
node-autoscaler✗—✗✓
workload-autoscaler✗✗—✓
full✗✗✗—

Upgrading between modes

Use --reset-then-reuse-values to preserve existing configuration when switching modes. Component overrides under autoscaler.* are stable across all mode upgrades.

helm upgrade castai castai-helm/castai \
  --namespace castai-agent \
  --reset-then-reuse-values \
  --set tags.readonly=false \
  --set tags.full=true

Configuring individual components

Pass component-specific values through the autoscaler.<component>.* prefix:

helm upgrade --install castai castai-helm/castai \
  --namespace castai-agent --create-namespace \
  --set global.castai.apiKey=<YOUR_API_KEY> \
  --set global.castai.apiURL=https://api.cast.ai \
  --set global.castai.provider=eks \
  --set tags.full=true \
  --set autoscaler.castai-agent.replicaCount=2 \
  --set autoscaler.castai-evictor.resources.requests.memory=256Mi

Or via a values file:

global:
  castai:
    apiKey: "<YOUR_API_KEY>"
    apiURL: "https://api.cast.ai"
    provider: eks

tags:
  full: true

autoscaler:
  castai-agent:
    replicaCount: 2
  castai-evictor:
    resources:
      requests:
        memory: 256Mi
helm upgrade --install castai castai-helm/castai \
  --namespace castai-agent --create-namespace \
  -f values.yaml

Disabling a component

Any component can be excluded regardless of the selected mode:

helm upgrade castai castai-helm/castai \
  --namespace castai-agent \
  --reset-then-reuse-values \
  --set autoscaler.castai-kvisor.enabled=false

Autoscaler Anywhere

For all other Kubernetes clusters (bare metal, on-prem, edge, GKE Autopilot, etc.). Authentication uses a pre-created credentials Secret instead of inline API key flags.

Prerequisites

Create the credentials secret before installing (name must match global.castai.apiKeySecretRef, default: castai-credentials):

kubectl create namespace castai-agent
kubectl create secret generic castai-credentials \
  --namespace castai-agent \
  --from-literal=TOKEN=<YOUR_API_KEY>

Install

helm upgrade --install castai castai-helm/castai \
  --namespace castai-agent --create-namespace \
  --set global.castai.apiURL=https://api.cast.ai \
  --set global.castai.apiKey=<YOUR_API_KEY> \
  --set tags.autoscaler-anywhere=true \
  --set autoscaler-anywhere.castai-agent.additionalEnv.ANYWHERE_CLUSTER_NAME=<CLUSTER_NAME>

Configuring individual components

Use the autoscaler-anywhere.<component>.* prefix:

helm upgrade castai castai-helm/castai \
  --namespace castai-agent \
  --reset-then-reuse-values \
  --set autoscaler-anywhere.castai-evictor.aggressiveMode=true

Kent

CAST AI Kent profile for EKS clusters. Like Autoscaler Anywhere, authentication uses a pre-created credentials Secret.

Prerequisites

Create the credentials secret before installing (name must match global.castai.apiKeySecretRef, default: castai-credentials):

kubectl create namespace castai-agent
kubectl create secret generic castai-credentials \
  --namespace castai-agent \
  --from-literal=TOKEN=<YOUR_API_KEY>

Install

helm upgrade --install castai castai-helm/castai \
  --namespace castai-agent --create-namespace \
  --set global.castai.apiURL=https://api.cast.ai \
  --set global.castai.provider=<eks|aks> \
  --set kent.enabled=true

Configuring individual components

Use the kent.<component>.* prefix:

helm upgrade castai castai-helm/castai \
  --namespace castai-agent \
  --reset-then-reuse-values \
  --set kent.metrics-server.enabled=true \
  --set kent.castai-live.controller.replicaCount=2

Image registry

CAST AI images are migrating to GitHub Container Registry — charts now default to ghcr.io/castai/images/*. The same images are also published to Google Artifact Registry (us-docker.pkg.dev/castai-hub/library/*) with identical paths and tags, and both registries are fully supported.

If your clusters cannot pull from ghcr.io (e.g. a registry allowlist) or you run into any issue with the new registry, fall back to GAR with the ready-made values file gar-values.yaml:

helm upgrade --install castai castai-helm/castai \
  --namespace castai-agent --create-namespace \
  --set global.castai.apiKey=<YOUR_API_KEY> \
  --set global.castai.provider=<eks|aks|gke> \
  --set tags.full=true \
  -f gar-values.yaml

The file covers all profiles and only rewrites registry prefixes — image versions stay managed by the chart, so it is safe to keep across chart upgrades.


Values

KeyTypeDefaultDescription
autoscaler.castai-config-sync.enabledboolfalse
autoscaler.castai-storage-autoscaler.enabledboolfalse
extraObjectslist[]List of extra Kubernetes objects to render with the chart. Useful for deploying supporting resources such as ExternalSecrets alongside the umbrella. Each item must be a valid Kubernetes manifest (apiVersion, kind, metadata, spec).
global.castai.apiKeystring""
global.castai.apiKeySecretRefstring"castai-credentials"
global.castai.apiURLstring"https://api.cast.ai"
global.castai.grpcURLstring"grpc.cast.ai:443"
global.castai.providerstring""
global.imagePullSecretslist[]
global.registrystring""
global.tolerationslist[]
kent.castai-storage-autoscaler.enabledboolfalse
kent.enabledboolfalse
kent.managedKarpenterboolfalseSet true when the Karpenter controller is cloud-managed out-of-band (e.g. AKS NAP); the preflight hook will skip the in-cluster controller lookup instead of warning.
kent.preflight.enabledbooltrue
kent.preflight.image.digeststring"sha256:0b3b0999468fedb305078508c51b2aa3394314aea1d2d6758c12a56fb72d4973"KENT preflight kubectl image digest.
kent.preflight.image.repositorystring"ghcr.io/castai/images/bitnami/kubectl"KENT preflight kubectl image repository.
tagsobject{"autoscaler-anywhere":false,"autoscaler-openshift":false,"full":false,"node-autoscaler":false,"readonly":false,"workload-autoscaler":false}Profile mode selection (mutually exclusive — pick one). Component overrides are stable across all mode upgrades with --reuse-values: --set autoscaler.castai-kvisor.enabled=false

Autogenerated from chart metadata using helm-docs v1.11.0

Deploy castai with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has castai on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcastai is pinned at v0.47.21 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply