castai-kentroller
by Cast AI
Helm chartv0.39.3App v0.39.3Verified publisher
Deploys the CAST AI kentroller — the in-cluster controller for KENT (Karpenter Enterprise by CAST AI), responsible for automated Kubernetes cluster management.
About this chart
castai-kentroller
Deploys the CAST AI kentroller — the in-cluster controller for KENT (Karpenter Enterprise by CAST AI), responsible for automated Kubernetes cluster management.
Requirements
| Repository | Name | Version |
|---|---|---|
| file://dependencies/crds | castai-kentroller-crds | 0.0.1 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {"podAntiAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":[{"labelSelector":{"matchExpressions":[{"key":"app.kubernetes.io/name","operator":"In","values":["castai-kentroller"]}]},"topologyKey":"kubernetes.io/hostname"}]}} | Pod affinity/anti-affinity rules. podAntiAffinity is used when enableTopologySpreadConstraints is false. |
| azure | object | {"subscriptionID":"","workloadIdentityClientID":""} | Azure-specific configuration. Required when provider is "azure". |
| azure.subscriptionID | string | "" | Azure subscription ID used for Azure inventory lookups. |
| azure.workloadIdentityClientID | string | "" | Client ID of the Azure AD Workload Identity to federate. Wires the ServiceAccount annotation and pod label AKS's workload identity webhook requires. |
| castai | object | {"apiKey":"","apiKeySecretRef":"","apiURL":"https://api.cast.ai","audit":{"createNamespace":true,"enabled":true,"namespace":"castai-audit"},"clm":{"enabled":false},"clusterIdConfigMapKeyRef":{"key":"CLUSTER_ID","name":""},"commitmentBudgets":{"drainMode":"off","enabled":true,"nodePoolFilterMode":"opt-out"},"continuousRebalancing":{"aggressiveModeConfig":{},"cycleIntervalSeconds":60,"deleteEmptyCycleIntervalSeconds":60,"diagnosticsVerbose":false,"disableDriftPlans":false,"drainOnlyCycleIntervalSeconds":60,"enabled":false,"evictionConfig":[],"fullModeCycleIntervalSeconds":1800,"minNodeAgeSeconds":300,"mode":"full","savingsThresholdPercent":15,"savingsThresholdPercentage":15},"grpcURL":"grpc.prod-master.cast.ai:443","organizationIdConfigMapKeyRef":{"key":"ORGANIZATION_ID","name":""},"otelLogs":{"enabled":true},"otelMetrics":{"enabled":true},"rebalance":{"disruptGuard":true,"enabled":true,"namespaceLabeling":true,"preferenceWeightedPacking":true,"softTSCSpreading":false},"spotInterruptionPrediction":{"enabled":true}} | CAST AI API configuration |
| castai.apiKey | string | "" | Token for authorizing agent access to the CAST AI API |
| castai.apiKeySecretRef | string | "" | Name of secret with token for authorizing agent access to the API. apiKey and apiKeySecretRef are mutually exclusive. The referenced secret must provide the token in .data["API_KEY"]. |
| castai.apiURL | string | "https://api.cast.ai" | CAST AI public API URL |
| castai.clm | object | {"enabled":false} | Enable CLM node labeling feature |
| castai.clusterIdConfigMapKeyRef | object | {"key":"CLUSTER_ID","name":""} | Name and key of ConfigMap with cluster ID. The referenced ConfigMap must provide the cluster ID in .data[<<.Values.castai.clusterIdConfigMapKeyRef.key>>]. |
| castai.commitmentBudgets | object | {"drainMode":"off","enabled":true,"nodePoolFilterMode":"opt-out"} | CommitmentBudgets controller configuration. |
| castai.commitmentBudgets.drainMode | string | "off" | Controls over-limit drain enforcement. - off (default): no drain plans are created; over-limit pools emit warning events only. - safe: over-limit budget NodePools get auto-executing RebalancePlans that respect PDBs and NodePool disruption budgets; kube-system and StatefulSet pods are not evicted. - aggressive: drain plans ignore blocking PDBs and zero NodePool disruption budgets and evict aggressively until the pool is back within its limits. |
| castai.commitmentBudgets.enabled | bool | true | Enable the CommitmentBudgets controller. When disabled, kentroller will not reconcile CommitmentBudget CRDs into Karpenter NodePools. |
| castai.commitmentBudgets.nodePoolFilterMode | string | "opt-out" | Controls which customer NodePools are considered for shadow NodePool creation. Annotate a NodePool with kentroller.cast.ai/commitment-nodepool-clone: "include" or "exclude" to control inclusion. - opt-out (default): all NodePools are included unless annotated "exclude". - opt-in: only NodePools annotated "include" are included. |
| castai.continuousRebalancing | object | {"aggressiveModeConfig":{},"cycleIntervalSeconds":60,"deleteEmptyCycleIntervalSeconds":60,"diagnosticsVerbose":false,"disableDriftPlans":false,"drainOnlyCycleIntervalSeconds":60,"enabled":false,"evictionConfig":[],"fullModeCycleIntervalSeconds":1800,"minNodeAgeSeconds":300,"mode":"full","savingsThresholdPercent":15,"savingsThresholdPercentage":15} | Continuous rebalancing feature configuration |
| castai.continuousRebalancing.aggressiveModeConfig | object | {} | Bypass safety checks globally during rebalancing. When set, these flags apply to all nodes and pods in every rebalancing cycle. Use evictionConfig for per-pod/per-node granularity instead. aggressiveModeConfig: ignoreLocalPersistentVolumes: false ignoreProblemRemovalDisabledPods: false ignoreProblemJobPods: false ignoreProblemPodsWithoutController: false ignoreInstanceCriteria: false ignoreBlockingPDB: false ignoreBlockingPDBTimeout: 10m aggressiveEviction: false drainTimeout: 10m |
| castai.continuousRebalancing.cycleIntervalSeconds | int | 60 | Interval in seconds between rebalancing cycles. Mutually exclusive with the mode-specific interval fields (fullModeCycleIntervalSeconds, drainOnlyCycleIntervalSeconds, deleteEmptyCycleIntervalSeconds). When set to a non-default value and no mode-specific intervals are configured, this value is used for all modes. If any mode-specific interval is set, this field is ignored for mode scheduling. |
| castai.continuousRebalancing.deleteEmptyCycleIntervalSeconds | int | 60 | Interval between delete-empty rebalancing cycles (default 1m). When set, cycleIntervalSeconds is ignored for mode scheduling. |
| castai.continuousRebalancing.diagnosticsVerbose | bool | false | Emit full per-node continuous rebalancing diagnostics logs (crb_node_decision / crb_node_blocker entries and cycle-status lines such as "no good nodes found"). When false, only the aggregate crb_cycle_summary entry is emitted per cycle. Hot-reloadable via the dynamic ConfigMap; flip to true temporarily for a debugging window on a specific cluster. |
| castai.continuousRebalancing.disableDriftPlans | bool | false | Suppress drift plan generation entirely. When true, kentroller stops replacing nodes whose NodeClaim is Drifted (the Karpenter nodepool-hash template change); drifted nodes are left to Karpenter's own drift disruption. Hot-reloadable via the dynamic ConfigMap. Records drift_candidates_blocked{reason="disabled"} per cycle while active. |
| castai.continuousRebalancing.drainOnlyCycleIntervalSeconds | int | 60 | Interval between drain-only rebalancing cycles (default 1m). When set, cycleIntervalSeconds is ignored for mode scheduling. |
| castai.continuousRebalancing.enabled | bool | false | Whether continuous rebalancing is enabled |
| castai.continuousRebalancing.evictionConfig | list | [] | Fine-grained control over which pods and nodes may be touched during rebalancing. Each entry targets either pods or nodes (not both). removalDisabled — pods/nodes matching this selector are never evicted or drained, regardless of any other settings. evictionConfig: - nodeSelectorTerm: labelSelector: matchLabels: dedicated: gpu settings: removalDisabled: enabled: true aggressive — allows evicting single-replica pods and pods protected by a PodDisruptionBudget. evictionConfig: - podSelector: labelSelector: matchLabels: cast.ai/eviction-policy: aggressive settings: aggressive: enabled: true disposable — pods matching this selector pass all eviction checks as long as they can be rescheduled elsewhere (or are inherently non-reschedulable, like Jobs); PDDs and replica guards are ignored. evictionConfig: - podSelector: kind: Job namespace: batch settings: disposable: enabled: true |
| castai.continuousRebalancing.fullModeCycleIntervalSeconds | int | 1800 | Interval between full continuous rebalancing cycles (expensive, default 30m). When set, cycleIntervalSeconds is ignored for mode scheduling. |
| castai.continuousRebalancing.minNodeAgeSeconds | int | 300 | Minimum time in seconds a node must exist before it is considered for replacement. Avoids churning nodes that just started up. |
| castai.continuousRebalancing.mode | string | "full" | Mode of continuous rebalancing. Available values: - delete-empty: Only delete empty nodes. - drain-only: Bin-pack nodes by draining into existing spare capacity. - full: Replace inefficient nodes with better-fit ones. Maximum savings, but most churn. |
| castai.continuousRebalancing.savingsThresholdPercent | int | 15 | Minimum cluster-scoped cost savings percentage for performing a rebalance action. The value is compared against projected savings as a percentage of total cluster cost, not the cost of replaced nodes. Relevant only for modes that can replace nodes (full mode). |
| castai.continuousRebalancing.savingsThresholdPercentage | int | 15 | [OBSOLETE] Use savingsThresholdPercent instead. Kept for backward compatibility. If set, it is used as a fallback when savingsThresholdPercent is not set. |
| castai.organizationIdConfigMapKeyRef | object | {"key":"ORGANIZATION_ID","name":""} | Name and key of ConfigMap with organization ID. The referenced ConfigMap must provide the organization ID in .data[<<.Values.castai.organizationIdConfigMapKeyRef.key>>]. |
| castai.otelLogs | object | {"enabled":true} | OpenTelemetry logs export configuration |
| castai.otelLogs.enabled | bool | true | Export logs via OTLP over the same gRPC endpoint as Kent, replacing the legacy components API log exporter (which runs only when this is false). Connected mode only; standalone always disables it. |
| castai.otelMetrics | object | {"enabled":true} | OpenTelemetry metrics export configuration |
| castai.otelMetrics.enabled | bool | true | Enable OTel metrics export via the same gRPC endpoint as Kent. In connected mode only — standalone always disables outbound OTLP export; the local metrics endpoint is controlled separately by metrics.enabled. |
| castai.rebalance | object | {"disruptGuard":true,"enabled":true,"namespaceLabeling":true,"preferenceWeightedPacking":true,"softTSCSpreading":false} | Enable rebalance feature |
| castai.rebalance.disruptGuard | bool | true | Enable the disrupt guard for manual/scheduled rebalance plans: while a plan executes, cluster nodes are annotated with karpenter.sh/do-not-disrupt=true so the Karpenter consolidator does not compete for the same free capacity; the annotation is reverted on plan completion. Static setting (env-based, unlike preferenceWeightedPacking) — changing it requires a kentroller pod restart. Default: true. |
| castai.rebalance.namespaceLabeling | bool | true | Enable applying the rebalancing.cast.ai/active label to namespaces during rebalancing. The label drives the TSC mutating webhook, but it also causes Cilium to recompute security identities for every pod in those namespaces. Disable this if you do not use hard hostname/zone TopologySpreadConstraints and want to avoid transient identity churn. Default: true. |
| castai.rebalance.preferenceWeightedPacking | bool | true | Enable preference-weighted packing in the rebalance plan generator. Scores candidate nodes by cost + reliability + preference penalties (PodAffinity, TopologySpread, VolumeZone) instead of pure cheapest-fit. Hot-reloadable via kubectl-edit on the dynamic config ConfigMap. Default: true. |
| castai.rebalance.softTSCSpreading | bool | false | Spread pods with soft (ScheduleAnyway) zone TopologySpreadConstraints across AZs during rebalancing/consolidation, instead of packing them wherever is cheapest. Hot-reloadable via kubectl-edit on the dynamic config ConfigMap. Changes consolidation aggressiveness for existing customers, so it needs explicit opt-in. Default: false. |
| castai.spotInterruptionPrediction | object | {"enabled":true} | Enable spot interruption handling in connected mode: replacement of at-risk spot nodes via consolidation machinery, driven by mothership-pushed UnavailableOffering CRs. Independent of continuous rebalancing (castai.continuousRebalancing.enabled). Standalone mode always disables it. |
| crds | object | {"enabled":true} | CRDs subchart configuration |
| crds.enabled | bool | true | Install CRDs as a dependency subchart |
| deploymentAnnotations | object | {"workloads.cast.ai/configuration":"horizontal:\n optimization: off\nvertical:\n optimization: on\n cpu:\n target: p75\n lookBackPeriod: 168h\n min: 1000m\n memory:\n target: p90\n lookBackPeriod: 168h\n"} | Annotations applied to the Deployment resource itself. The workloads.cast.ai/configuration annotation enables CAST AI Vertical Pod Autoscaler (VPA) and must be on the Deployment, not the pod template. with CPU min 1000m, P75 CPU target, P90 memory target, and the longest supported look-back period (168h). |
| deploymentMode | string | "connected" | Runtime connectivity contract. One of: connected, standalone. Standalone mode has no required runtime connection to the CAST Control Plane and injects inert sentinel values for the binary's required CAST configuration fields. |
| dynamicConfig | object | {"annotations":{"argocd.argoproj.io/compare-options":"IgnoreExtraneous"}} | Settings for the dynamic config ConfigMap managed at runtime by kentroller. |
| dynamicConfig.annotations | object | {"argocd.argoproj.io/compare-options":"IgnoreExtraneous"} | Annotations applied to the dynamic config ConfigMap. |
| enableTopologySpreadConstraints | bool | false | Use topologySpre |
Deploy castai-kentroller with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has castai-kentroller 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcastai-kentroller is pinned at v0.39.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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