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

RepositoryNameVersion
file://child-charts/castai-cluster-controller-extcastai-cluster-controller-ext0.1.1

Values

KeyTypeDefaultDescription
additionalEnvobject{"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].keystring"kubernetes.io/os"
affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].operatorstring"NotIn"
affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[0]string"windows"
affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].keystring"app.kubernetes.io/name"
affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].operatorstring"In"
affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].values[0]string"castai-cluster-controller"
affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].topologyKeystring"kubernetes.io/hostname"
autoscalingobject{"enabled":true}Settings for managing autoscaling features.
autoscaling.enabledbooltrueAdds permissions to manage autoscaling.
castaiobject{"apiKey":"","apiKeySecretRef":"","apiURL":"https://api.cast.ai","clusterID":"","clusterIdSecretKeyRef":{"key":"CLUSTER_ID","name":""}}CAST AI API configuration.
castai.apiKeystring""Token to be used for authorizing agent access to the CASTAI API.
castai.apiKeySecretRefstring""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.apiURLstring"https://api.cast.ai"CASTAI public api url.
castai.clusterIDstring""CASTAI Cluster unique identifier. clusterID and clusterIdSecretKeyRef are mutually exclusive
commonAnnotationsobject{}Annotations to add to all resources.
commonLabelsobject{}Labels to add to all resources.
containerSecurityContext.allowPrivilegeEscalationboolfalse
createNamespaceboolfalseBy default namespace is expected to be created by castai-agent.
dnsPolicystring""DNS Policy Override - Needed when using some custom CNI's.
enableTopologySpreadConstraintsboolfalse
envFromlist[]Used to set additional environment variables for the cluster-controller container via configMaps or secrets.
extraVolumeMountslist[]Used to set additional volume mounts
extraVolumeslist[]Used to set additional volumes
fullnameOverridestring"castai-cluster-controller"
globalobject{"castai":{"apiKeySecretRef":""},"commonAnnotations":{},"commonLabels":{},"registry":""}Global values that are propagated to child charts.
global.castai.apiKeySecretRefstring""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.commonAnnotationsobject{}Annotations to add to all resources (including child charts).
global.commonLabelsobject{}Labels to add to all resources (including child charts).
global.registrystring""Container registry prefix for all images (e.g. "my-registry.example.com"). When set, it is prepended to all image repositories.
hostNetwork.enabledboolfalse
image.pullPolicystring"IfNotPresent"
image.repositorystring"ghcr.io/castai/images/cluster-controller"
image.tagstring""Tag is set using Chart.yaml appVersion field.
imagePullSecretsobject{}
k8sApiClientobject{"rateLimit":{"burst":400,"qps":200}}Settings for configuring k8s client used in castai-cluster-controller.
leaderElectionEnabledbooltrueWhen running 2+ replicas of castai-cluster-controller only one should work as a leader.
leaderElectionLeaseDurationstring"15s"
leaderElectionRenewDeadlinestring"10s"
maxActionsInProgressint1000Max number of actions, which are done concurrently.
monitor.resources.requests.cpustring"100m"
monitor.resources.requests.memorystring"128Mi"
nameOverridestring""
nodeSelectorobject{}
pdbobject{"enabled":true,"maxUnavailable":"","minAvailable":""}PodDisruptionBudget configuration.
pdb.enabledbooltrueEnable PodDisruptionBudget. Set to false to disable PDB even with multiple replicas.
pdb.maxUnavailablestring""Maximum unavailable pods during disruption. Cannot be used together with minAvailable. If set, takes precedence over minAvailable.
pdb.minAvailablestring""Minimum available pods during disruption. Cannot be used together with maxUnavailable. If not set, falls back to pdbMinAvailable for backward compatibility.
pdbMinAvailableint1Deprecated: use pdb.minAvailable instead.
podAnnotationsobject{}Annotations added to each pod.
podLabelsobject{}
priorityClassobject{"enabled":true,"name":"system-cluster-critical"}K8s priority class of castai-cluster-controller
replicasint2Number of replicas for castai-cluster-controller deployment.
resourceQuotaobject{"enabled":true}ResourceQuota configuration for critical pods.
resourceQuota.enabledbooltrueEnable ResourceQuota for critical pods. Requires priorityClass.enabled to be true.
resources.limits.memorystring"1Gi"
resources.requests.cpustring"50m"
resources.requests.memorystring"100Mi"
securityContextobject{"fsGroup":65532,"runAsGroup":65532,"runAsNonRoot":true,"runAsUser":65532}User 65532 is non-root user for gcr distorless images
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring"castai-cluster-controller"
tolerationslist[]
topologySpreadConstraintslist[{"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.
trustedCACertstring""CA certificate to add to the set of root certificate authorities that the client will use when verifying server certificates.
trustedCACertSecretRefstring""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"].
updateStrategyobject{"type":"RollingUpdate"}Controls deployment.spec.strategy field.
workloadAutoscalingobject{"enabled":true}Settings for managing CAST autoscaling CRDs.
workloadAutoscaling.enabledbooltrueAdds 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcastai-cluster-controller is pinned at v0.92.25 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