castai-cluster-controller
by Cast AI
Helm chartv0.92.25App v0.65.2Verified publisher
Cluster controller is responsible for handling certain Kubernetes actions such as draining and deleting nodes, adding labels, approving CSR requests.
About this chart
castai-cluster-controller
Cluster controller is responsible for handling certain Kubernetes actions such as draining and deleting nodes, adding labels, approving CSR requests.
Requirements
| Repository | Name | Version |
|---|---|---|
| file://child-charts/castai-cluster-controller-ext | castai-cluster-controller-ext | 0.1.1 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalEnv | object | {"DRAIN_DISABLE_VOLUME_DETACH_WAIT":"false","INFORMER_CACHE_SYNC_TIMEOUT":"1m","INFORMER_ENABLE_NODE":"false","INFORMER_ENABLE_POD":"false","LOG_LEVEL":"5","MONITOR_METADATA":"/controller-metadata/metadata","VOLUME_ATTACHMENT_DEFAULT_TIMEOUT":"60s"} | Env variables passed to castai-cluster-controller. |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].key | string | "kubernetes.io/os" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].operator | string | "NotIn" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[0] | string | "windows" | |
| affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].key | string | "app.kubernetes.io/name" | |
| affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].operator | string | "In" | |
| affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].values[0] | string | "castai-cluster-controller" | |
| affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].topologyKey | string | "kubernetes.io/hostname" | |
| autoscaling | object | {"enabled":true} | Settings for managing autoscaling features. |
| autoscaling.enabled | bool | true | Adds permissions to manage autoscaling. |
| castai | object | {"apiKey":"","apiKeySecretRef":"","apiURL":"https://api.cast.ai","clusterID":"","clusterIdSecretKeyRef":{"key":"CLUSTER_ID","name":""}} | CAST AI API configuration. |
| castai.apiKey | string | "" | Token to be used for authorizing agent access to the CASTAI API. |
| castai.apiKeySecretRef | string | "" | Name of secret with Token to be used 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" | CASTAI public api url. |
| castai.clusterID | string | "" | CASTAI Cluster unique identifier. clusterID and clusterIdSecretKeyRef are mutually exclusive |
| commonAnnotations | object | {} | Annotations to add to all resources. |
| commonLabels | object | {} | Labels to add to all resources. |
| containerSecurityContext.allowPrivilegeEscalation | bool | false | |
| createNamespace | bool | false | By default namespace is expected to be created by castai-agent. |
| dnsPolicy | string | "" | DNS Policy Override - Needed when using some custom CNI's. |
| enableTopologySpreadConstraints | bool | false | |
| envFrom | list | [] | Used to set additional environment variables for the cluster-controller container via configMaps or secrets. |
| extraVolumeMounts | list | [] | Used to set additional volume mounts |
| extraVolumes | list | [] | Used to set additional volumes |
| fullnameOverride | string | "castai-cluster-controller" | |
| global | object | {"castai":{"apiKeySecretRef":""},"commonAnnotations":{},"commonLabels":{},"registry":""} | Global values that are propagated to child charts. |
| global.castai.apiKeySecretRef | string | "" | Name of a pre-existing Secret containing the CAST AI API key. Takes effect when castai.apiKeySecretRef is not set locally. Mutually exclusive with castai.apiKey. |
| global.commonAnnotations | object | {} | Annotations to add to all resources (including child charts). |
| global.commonLabels | object | {} | Labels to add to all resources (including child charts). |
| global.registry | string | "" | Container registry prefix for all images (e.g. "my-registry.example.com"). When set, it is prepended to all image repositories. |
| hostNetwork.enabled | bool | false | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "ghcr.io/castai/images/cluster-controller" | |
| image.tag | string | "" | Tag is set using Chart.yaml appVersion field. |
| imagePullSecrets | object | {} | |
| k8sApiClient | object | {"rateLimit":{"burst":400,"qps":200}} | Settings for configuring k8s client used in castai-cluster-controller. |
| leaderElectionEnabled | bool | true | When running 2+ replicas of castai-cluster-controller only one should work as a leader. |
| leaderElectionLeaseDuration | string | "15s" | |
| leaderElectionRenewDeadline | string | "10s" | |
| maxActionsInProgress | int | 1000 | Max number of actions, which are done concurrently. |
| monitor.resources.requests.cpu | string | "100m" | |
| monitor.resources.requests.memory | string | "128Mi" | |
| nameOverride | string | "" | |
| nodeSelector | object | {} | |
| pdb | object | {"enabled":true,"maxUnavailable":"","minAvailable":""} | PodDisruptionBudget configuration. |
| pdb.enabled | bool | true | Enable PodDisruptionBudget. Set to false to disable PDB even with multiple replicas. |
| pdb.maxUnavailable | string | "" | Maximum unavailable pods during disruption. Cannot be used together with minAvailable. If set, takes precedence over minAvailable. |
| pdb.minAvailable | string | "" | Minimum available pods during disruption. Cannot be used together with maxUnavailable. If not set, falls back to pdbMinAvailable for backward compatibility. |
| pdbMinAvailable | int | 1 | Deprecated: use pdb.minAvailable instead. |
| podAnnotations | object | {} | Annotations added to each pod. |
| podLabels | object | {} | |
| priorityClass | object | {"enabled":true,"name":"system-cluster-critical"} | K8s priority class of castai-cluster-controller |
| replicas | int | 2 | Number of replicas for castai-cluster-controller deployment. |
| resourceQuota | object | {"enabled":true} | ResourceQuota configuration for critical pods. |
| resourceQuota.enabled | bool | true | Enable ResourceQuota for critical pods. Requires priorityClass.enabled to be true. |
| resources.limits.memory | string | "1Gi" | |
| resources.requests.cpu | string | "50m" | |
| resources.requests.memory | string | "100Mi" | |
| securityContext | object | {"fsGroup":65532,"runAsGroup":65532,"runAsNonRoot":true,"runAsUser":65532} | User 65532 is non-root user for gcr distorless images |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "castai-cluster-controller" | |
| tolerations | list | [] | |
| topologySpreadConstraints | list | [{"maxSkew":1,"topologyKey":"kubernetes.io/hostname","whenUnsatisfiable":"ScheduleAnyway"}] | Defines how pods are spread across topology domains. Note: labelSelector is automatically set to match the deployment's selector labels and cannot be customized. |
| trustedCACert | string | "" | CA certificate to add to the set of root certificate authorities that the client will use when verifying server certificates. |
| trustedCACertSecretRef | string | "" | Name of secret with CA certificate to be added to the set of root certificate authorities that the client will use when verifying server certificates. trustedCACert and trustedCACertSecretRef are mutually exclusive. The referenced secret must provide the certificate in .data["TLS_CA_CERT_FILE"]. |
| updateStrategy | object | {"type":"RollingUpdate"} | Controls deployment.spec.strategy field. |
| workloadAutoscaling | object | {"enabled":true} | Settings for managing CAST autoscaling CRDs. |
| workloadAutoscaling.enabled | bool | true | Adds permissions to manage CAST autoscaling CRDs. |
Deploy castai-cluster-controller with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has castai-cluster-controller 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-cluster-controller is pinned at v0.92.25 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