castai-spot-handler
by Cast AI
Helm chartv0.35.17App v0.35.16Verified publisher
Spot Handler is the component responsible for scheduled events monitoring and delivering them to the central platform.
About this chart
castai-spot-handler
Spot Handler is the component responsible for scheduled events monitoring and delivering them to the central platform.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalEnv.LOG_EXPORTER_ENABLED | string | "true" | |
| additionalEnv.LOG_EXPORTER_LOG_LEVEL | string | "info" | |
| additionalEnv.LOG_LEVEL | string | "debug" | |
| additionalEnv.POLL_INTERVAL_SECONDS | string | "3" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].key | string | "eks.amazonaws.com/capacityType" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].operator | string | "In" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[0] | string | "SPOT" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[1].key | string | "kubernetes.io/os" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[1].operator | string | "NotIn" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[1].values[0] | string | "windows" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[1].matchExpressions[0].key | string | "karpenter.sh/capacity-type" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[1].matchExpressions[0].operator | string | "In" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[1].matchExpressions[0].values[0] | string | "spot" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[1].matchExpressions[1].key | string | "kubernetes.io/os" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[1].matchExpressions[1].operator | string | "NotIn" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[1].matchExpressions[1].values[0] | string | "windows" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[2].matchExpressions[0].key | string | "kubernetes.azure.com/scalesetpriority" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[2].matchExpressions[0].operator | string | "In" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[2].matchExpressions[0].values[0] | string | "spot" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[3].matchExpressions[0].key | string | "cloud.google.com/gke-spot" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[3].matchExpressions[0].operator | string | "In" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[3].matchExpressions[0].values[0] | string | "true" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[4].matchExpressions[0].key | string | "cloud.google.com/gke-preemptible" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[4].matchExpressions[0].operator | string | "In" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[4].matchExpressions[0].values[0] | string | "true" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[5].matchExpressions[0].key | string | "spotinst.io/node-lifecycle" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[5].matchExpressions[0].operator | string | "In" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[5].matchExpressions[0].values[0] | string | "spot" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[5].matchExpressions[1].key | string | "kubernetes.io/os" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[5].matchExpressions[1].operator | string | "NotIn" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[5].matchExpressions[1].values[0] | string | "windows" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[6].matchExpressions[0].key | string | "node.kubernetes.io/lifecycle" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[6].matchExpressions[0].operator | string | "In" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[6].matchExpressions[0].values[0] | string | "spot" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[6].matchExpressions[0].values[1] | string | "SpotInstance" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[6].matchExpressions[1].key | string | "kubernetes.io/os" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[6].matchExpressions[1].operator | string | "NotIn" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[6].matchExpressions[1].values[0] | string | "windows" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[7].matchExpressions[0].key | string | "kubernetes.io/lifecycle" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[7].matchExpressions[0].operator | string | "In" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[7].matchExpressions[0].values[0] | string | "spot" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[7].matchExpressions[0].values[1] | string | "SpotInstance" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[7].matchExpressions[1].key | string | "kubernetes.io/os" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[7].matchExpressions[1].operator | string | "NotIn" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[7].matchExpressions[1].values[0] | string | "windows" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[8].matchExpressions[0].key | string | "scheduling.cast.ai/spot" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[8].matchExpressions[0].operator | string | "In" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[8].matchExpressions[0].values[0] | string | "true" | |
| apiKeySecretRef | string | "" | Name of secret with Token to be used for authorizing access to the API The referenced secret must provide the token in .data["API_KEY"] apiKey and apiKeySecretRef are mutually exclusive. |
| castai.apiKey | string | "" | |
| castai.apiURL | string | "https://api.cast.ai" | CASTAI public api url. |
| castai.clusterID | string | "" | CASTAI Cluster unique identifier. castai.clusterID, castai.clusterIdSecretKeyRef and castai.clusterIdConfigMapKeyRef are mutually exclusive |
| castai.clusterIdConfigMapKeyRef.key | string | "CLUSTER_ID" | |
| castai.clusterIdConfigMapKeyRef.name | string | "" | |
| castai.clusterIdSecretKeyRef.key | string | "CLUSTER_ID" | |
| castai.clusterIdSecretKeyRef.name | string | "" | |
| castai.provider | string | "" | Cloud provider (azure, gcp, aws). |
| commonAnnotations | object | {} | Annotations to add to all resources. |
| commonLabels | object | {} | Labels to add to all resources. |
| dnsPolicy | string | "ClusterFirstWithHostNet" | DNS policy rendered when useHostNetwork is enabled. |
| envFrom | list | [] | Used to set additional environment variables for the spot handler container via configMaps or secrets. |
| global | object | {"castai":{"apiKeySecretRef":"","readOnly":false},"registry":""} | Global values propagated from parent charts. |
| global.castai.apiKeySecretRef | string | "" | Name of a pre-existing Secret containing the CAST AI API key. Takes effect when apiKeySecretRef is not set locally. Mutually exclusive with castai.apiKey. |
| global.castai.readOnly | bool | false | Read-only mode signal, typically set to true by the CAST AI umbrella chart when installed with tags.readonly=true. When true, phase2 permissions (node patch RBAC + PHASE2_PERMISSIONS env) are disabled regardless of phase2Permissions. |
| global.registry | string | "" | Container registry prefix for all images (e.g. "my-registry.example.com"). When set, it is prepended to all image repositories. |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "ghcr.io/castai/images/spot-handler" | |
| image.tag | string | "" | |
| imagePullSecrets | object | {} | what secret should be used for pulling the image |
| interruption.podDeletionEnabled | bool | false | Enable pod deletion on interrupted nodes to speed up eviction via SIGTERM. |
| nodeSelector | object | {} | |
| phase2Permissions | bool | true | Include permissions for tainting nodes (phase 2). Forced to false when global.castai.readOnly=true (set by the umbrella chart in read-only mode). |
| podAnnotations | object | {} | |
| podLabels | object | {} | |
| priorityClassName | string | "system-cluster-critical" | |
| rbac.enabled | bool | true | |
| resources.limits.memory | string | "220Mi" | |
| resources.requests.cpu | string | "20m" | |
| resources.requests.memory | string | "40Mi" | |
| securityContext.fsGroup | int | 1003 | |
| securityContext.runAsGroup | int | 1003 | |
| securityContext.runAsNonRoot | bool | true | |
| securityContext.runAsUser | int | 1003 | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.name | string | "castai-spot-handler" | |
| tolerations[0].effect | string | "NoSchedule" | |
| tolerations[0].operator | string | "Exists" | |
| tolerations[1].effect | string | "NoSchedule" | |
| tolerations[1].key | string | "kubernetes.azure.com/scalesetpriority" | |
| tolerations[1].operator | string | "Equal" | |
| tolerations[1].value | string | "spot" | |
| 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 | {"rollingUpdate":{"maxUnavailable":"100%"},"type":"RollingUpdate"} | Controls daemonset.spec.updateStrategy field. All pods are updated in parallel so agent rollouts complete fast regardless of cluster size. The Kubernetes default (maxUnavailable: 1) rolls out one node at a time, which can exceed rollout timeouts on large clusters (e.g. 80+ spot nodes). |
| useHostNetwork | bool | true | Host network is used to access instance metadata endpoints which are not always available from pod network. |
Deploy castai-spot-handler with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has castai-spot-handler 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-spot-handler is pinned at v0.35.17 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