castai-pod-node-lifecycle

by Cast AI

Helm chartv0.37.0App v0.31.0Verified publisher

CAST AI spot-only K8s webhook to control workload placement during cluster migration and spot-only.

About this chart

castai-pod-node-lifecycle

CAST AI spot-only K8s webhook to control workload placement during cluster migration and spot-only.

Values

KeyTypeDefaultDescription
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-pod-node-lifecycle"
affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].topologyKeystring"kubernetes.io/hostname"
api.clusterIdstring""
api.keystring""
api.keySecretRefstring""
api.urlstring"https://api.cast.ai"
deploybooltrue
dnsPolicystring""
fullnameOverridestring""
hostNetwork.enabledboolfalse
image.pullPolicystring"IfNotPresent"
image.repositorystring"us-docker.pkg.dev/castai-hub/library/pod-node-lifecycle"
image.tagstring""
imagePullSecretslist[]
mainContainerSecurityContext.readOnlyRootFilesystembooltrue
metrics.enabledbooltrue
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}
podLabelsobject{}
podSecurityContext.fsGroupint1005
podSecurityContext.runAsGroupint1005
podSecurityContext.runAsNonRootbooltrue
podSecurityContext.runAsUserint1005
priorityClass.enabledbooltrue
priorityClass.namestring"system-cluster-critical"
replicaCountint3
resources.limits.cpustring"1000m"
resources.limits.memorystring"128Mi"
resources.requests.cpustring"100m"
resources.requests.memorystring"128Mi"
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
staticConfig.cacheTTLSecondsint60
staticConfig.defaultToSpotbooltrue
staticConfig.forcePodsToOnDemandstringnil
staticConfig.forcePodsToSpotstringnil
staticConfig.ignorePodsstringnil
staticConfig.presetstringnil
staticConfig.presets.allSpotstring"defaultToSpot: true\nspotPercentageOfReplicaSet: 0\nignorePods: []\nforcePodsToSpot: []\nforcePodsToOnDemand: []\n"
staticConfig.presets.allSpotExceptKubeSystemstring"defaultToSpot: true\nspotPercentageOfReplicaSet: 0\nignorePods: []\nforcePodsToSpot: []\nforcePodsToOnDemand:\n - namespaces:\n - kube-system\n"
staticConfig.presets.partialSpotstring"defaultToSpot: true\nspotPercentageOfReplicaSet: 40\nignorePods: []\nforcePodsToSpot: []\nforcePodsToOnDemand: []\n"
staticConfig.spotPercentageOfReplicaSetint0
staticConfig.stringTemplatestring"defaultToSpot: {{ .Values.staticConfig.defaultToSpot }}\nspotPercentageOfReplicaSet: {{ .Values.staticConfig.spotPercentageOfReplicaSet }}\n{{- if .Values.staticConfig.IgnorePodsWithNodeSelectorsAffinities }}\nIgnorePodsWithNodeSelectorsAffinities: {{ .Values.staticConfig.IgnorePodsWithNodeSelectorsAffinities }}\n{{- end }}\n{{- if .Values.staticConfig.ignorePods }}\nignorePods:\n{{ toYaml .Values.staticConfig.ignorePods }}\n{{- end }}\n{{- if .Values.staticConfig.forcePodsToSpot }}\nforcePodsToSpot:\n{{ toYaml .Values.staticConfig.forcePodsToSpot }}\n{{- end }}\n{{- if .Values.staticConfig.forcePodsToOnDemand }}\nforcePodsToOnDemand:\n{{ toYaml .Values.staticConfig.forcePodsToOnDemand }}\n{{- end }}\n{{- if .Values.staticConfig.cacheTTLSeconds }}\ncacheTTLSeconds: {{ toYaml .Values.staticConfig.cacheTTLSeconds }}\n{{- end }}\n"
telemetry.enabledboolfalse
tolerations[0].keystring"scheduling.cast.ai/spot"
tolerations[0].operatorstring"Exists"
webhook.failurePolicystring""
webhook.portint10250
webhook.urlstring""

Autogenerated from chart metadata using helm-docs v1.11.0

Deploy castai-pod-node-lifecycle with OpenTenant

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