castai-karpenter

by Cast AI

Helm chartv0.1.0App v0.1.0Verified publisher

Karpenter for EKS, installed and upgraded by the CAST AI castware operator. Wraps the upstream karpenter and karpenter-crd charts at pinned versions.

About this chart

castai-karpenter

Karpenter for EKS, installed and upgraded by the CAST AI castware operator. A thin wrapper around the upstream karpenter and karpenter-crd charts from oci://public.ecr.aws/karpenter, pinned to the same version. The upstream templates are unchanged. CAST adds a validation template and an optional PodMonitor.

The upstream version is also in the chart annotation cast.ai/karpenter-version. Keep it in sync with the dependency pins in Chart.yaml when bumping.

Installing

helm install castai-karpenter castai-helm/castai-karpenter -n karpenter --create-namespace --skip-crds \
  --set karpenter.settings.clusterName=<cluster> \
  --set karpenter.settings.clusterEndpoint=<endpoint> \
  --set karpenter.settings.interruptionQueue=<queue>

CRDs are installed as templates by karpenter-crd, so Helm upgrades them. The karpenter subchart also ships the same CRDs in its crds/ directory, which has no values toggle, so install with --skip-crds (or the equivalent option in your Helm client). Otherwise the first install fails because the CRDs already exist.

Karpenter needs AWS permissions through an EKS Pod Identity association on the ServiceAccount named by karpenter.serviceAccount.name. The chart does not create IAM resources.

Values

Values under karpenter and karpenter-crd go to the upstream subcharts. For the full list, see the upstream chart values for the pinned version. Only the keys CAST sets or adds are listed here.

KeyDefaultDescription
karpenter.settings.clusterName""Required. EKS cluster name.
karpenter.settings.clusterEndpoint""Required. EKS cluster API endpoint.
karpenter.settings.interruptionQueue""SQS interruption queue name. Interruption handling is off when empty.
karpenter.serviceAccount.createtrueCreate the ServiceAccount.
karpenter.serviceAccount.namekarpenterServiceAccount name the Pod Identity association targets.
karpenter.replicas2Controller replicas.
karpenter.additionalLabelscast.ai/managed-by: castai-karpenterLabels on every upstream resource, including the Deployment.
karpenter.podLabelscast.ai/managed-by: castai-karpenterLabels on the controller pods.
karpenter.affinitynode affinity karpenter.sh/nodepool DoesNotExist, pod anti-affinity by hostnameKeeps Karpenter off nodes it manages. Replaces the upstream value, so restate both parts when overriding.
karpenter.logLevelinfoLog level. Logs are JSON in Karpenter 1.14.
karpenter-crd.additionalAnnotations{}Extra annotations on the CRDs.
podMonitor.enabledfalseCreate a PodMonitor for the controller metrics. Needs the Prometheus Operator CRDs.
podMonitor.additionalLabels{}Extra labels on the PodMonitor, for example a Prometheus selector label.
podMonitor.interval30sScrape interval.
podMonitor.scrapeTimeout""Scrape timeout. Omitted when empty.
podMonitor.relabelings[]Relabelings for the http-metrics endpoint.
podMonitor.metricRelabelings[]Metric relabelings for the http-metrics endpoint.

Tests

services/castai-karpenter/test/render-test.sh builds the dependencies, lints, and asserts the rendered output.

Deploy castai-karpenter with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has castai-karpenter 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-karpenter is pinned at v0.1.0 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