castai-evictor

by Cast AI

Helm chartv0.35.161App v0.35.161Verified publisher

Cluster utilization defragmentation tool

About this chart

castai-evictor

Cluster utilization defragmentation tool

Requirements

RepositoryNameVersion
file://child-charts/castai-evictor-extcastai-evictor-ext0.5.0

Values

KeyTypeDefaultDescription
additionalEnvobject{}Used to set any additional environment variables.
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"
aggressiveModeboolfalseSpecifies whether the Evictor can behave as aggressive if true, evictor will start considering single replica pods as long as they can be scheduled somewhere else.
apiKeySecretRefstring""Name of secret with Token to be used for authorizing evictor access to the API apiKey and apiKeySecretRef are mutually exclusive The referenced secret must provide the token in .data["API_KEY"].
arm64SupportedbooltrueIndicates arm64 nodes are present so the scheduling simulation includes them as valid targets.
clusterIdConfigMapKeyRef.keystring"CLUSTER_ID"key of the cluster id value in the config map
clusterIdConfigMapKeyRef.namestring""name and of the config map with cluster id
clusterIdSecretKeyRef.keystring"CLUSTER_ID"
clusterIdSecretKeyRef.namestring""
clusterVPAobject{"dedicatedServiceAccount":{"enabled":false},"enabled":true,"pollPeriodSeconds":300,"repository":"ghcr.io/castai/images/cpa/cpvpa","resources":{},"version":"v0.8.18"}Cluster proportional vertical autoscaler for the evictor deployment https://github.com/castai/cluster-proportional-vertical-autoscaler.
clusterVPA.dedicatedServiceAccount.enabledboolfalseOpt in to run cpvpa under a dedicated, least-privilege ServiceAccount (nodes list + patch of the evictor Deployment) instead of the evictor's ServiceAccount. Ignored when serviceAccount.create, rbac.enabled or global.rbac.clusterScoped.enabled is false.
commonAnnotationsobject{}
commonLabelsobject{}Labels to add to all resources.
configMapLabelsobject{}
containerSecurityContext.allowPrivilegeEscalationboolfalse
containerSecurityContext.capabilities.drop[0]string"ALL"
containerSecurityContext.readOnlyRootFilesystembooltrue
containerSecurityContext.runAsNonRootbooltrue
containerSecurityContext.seccompProfile.typestring"RuntimeDefault"
crdUpgradeobject{"activeDeadlineSeconds":240,"containerSecurityContext":{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true},"enabled":true,"image":{"digest":"","pullPolicy":"IfNotPresent","repository":"registry.k8s.io/kubectl","tag":"v1.35.10"},"imagePullSecrets":[],"podAnnotations":{},"podLabels":{},"resources":{"limits":{"cpu":"200m","memory":"512Mi"},"requests":{"cpu":"100m","memory":"256Mi"}},"securityContext":{"fsGroup":1004,"runAsGroup":1004,"runAsNonRoot":true,"runAsUser":1004,"seccompProfile":{"type":"RuntimeDefault"}}}CRD upgrade configuration. Enables automatic CRD upgrade during helm install/upgrade operations via a pre-install/pre-upgrade hook Job.
crdUpgrade.activeDeadlineSecondsint240Overall deadline for the CRD upgrade Job. Bounds hook runtime so a stuck pod (e.g. image pull backoff) fails fast with a real error instead of Helm's generic timeout. Keep below the deploying pipeline's Helm --timeout (default 5m) so the Job fails first.
crdUpgrade.containerSecurityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true}Container security context (applied to all init + main containers). seccompProfile and runAsUser inherited from pod-level.
crdUpgrade.image.digeststring""Image digest for pinning (e.g. sha256:abc...). When set, appended to the image reference.
crdUpgrade.imagePullSecretslist[]Image pull secrets for the CRD upgrade Job. Use when crdUpgrade.image.repository points to a private registry that requires authentication. Independent of the evictor imagePullSecrets.
crdUpgrade.podAnnotationsobject{}Additional annotations applied to the CRD upgrade Job pod.
crdUpgrade.podLabelsobject{}Additional labels applied to the CRD upgrade Job pod.
crdUpgrade.resourcesobject{"limits":{"cpu":"200m","memory":"512Mi"},"requests":{"cpu":"100m","memory":"256Mi"}}Resources for all containers (init + main) in the Job.
crdUpgrade.securityContextobject{"fsGroup":1004,"runAsGroup":1004,"runAsNonRoot":true,"runAsUser":1004,"seccompProfile":{"type":"RuntimeDefault"}}Pod security context. UID fields apply on non-OpenShift clusters only; on OpenShift the namespace SCC assigns the UID.
customConfigobject{}
cycleIntervalstring"1m"Specifies the interval between eviction cycles. This property can be used to lower or raise the frequency of the evictor's find-and-drain operations.
dnsPolicystring""DNS Policy Override - Needed when using some custom CNI's.
drainRollbackTimeoutstring"1m"How long the evictor waits before rolling back a cordon when a drain attempt fails.
drainTimeoutstring"10m"Maximum time the evictor waits for a node to fully drain before giving up.
dryRunboolfalseSpecifies whether the Evictor should run in dryRun mode (Read-Only). if true, evictor will just log action(s) it would perform instead of actually performing them.
emitNodeRelatedPodEventsboolfalseEmit Kubernetes events on pods when they are evicted as part of a node drain.
envFromlist[]Additional environment sources for the evictor container. Accepts a list of configMapRef or secretRef entries, following the standard envFrom format.
evictorEnabledboolfalseTop-level kill-switch for the evictor. When false, no evictions or node drains are performed regardless of other settings.
extraVolumeMountslist[]Used to set additional volume mounts.
extraVolumeslist[]Used to set additional volumes.
forceDisableKarpenterModebooltrueDisables Karpenter-aware scheduling simulation even when Karpenter is detected on the cluster. Capability-detected by the evictor.
fullnameOverridestring"castai-evictor"
globalobject{"castai":{"apiKeySecretRef":""},"imagePullSecrets":[],"rbac":{"clusterScoped":{"enabled":true}},"registry":""}Global values propagated from parent charts.
global.castai.apiKeySecretRefstring""Name of a pre-existing Secret containing the CAST AI API key. Takes effect when apiKeySecretRef is not set locally.
global.imagePullSecretslist[]Image pull secrets applied to all pods. Merged with local imagePullSecrets.
global.rbac.clusterScoped.enabledbooltrueEnable cluster-scoped RBAC resources (ClusterRole, ClusterRoleBinding). Set to false to disable cluster-scoped RBAC if using namespace-scoped permissions.
global.registrystring""Container registry prefix for all images (e.g. "my-registry.example.com"). When set, it is prepended to all image repositories.
hostNetwork.enabledboolfalseEnable host networking.
ignorePodDisruptionBudgetsboolfalseSpecifies whether the Evictor should ignore Pod Disruption Budgets (PDBs). If true, evictor will attempt to evict pods even if it would violate a PDB. Use with caution as this may disrupt application availability guarantees.
image.pullPolicystring"IfNotPresent"
image.repositorystring"ghcr.io/castai/images/evictor"
image.tagstring""
imagePullSecretslist[]
karpenterNodeCleanupobject{"enabled":false}Karpenter NodeClaim cleanup for nodes Evictor has drained. When enabled, Evictor deletes the Karpenter NodeClaim for any node it has successfully drained, so Karpenter's termination controller can clean up the EC2 instance. Requires nodeclaims.karpenter.sh get/list/watch/delete permission (granted by this chart).
karpenterNodeCleanup.enabledboolfalseWhether to enable cleanup of Karpenter nodes.
kubernetesClientobject{"rateLimiter":{"burst":200,"qps":100},"useCoreObjectCache":false}Specifies Kubernetes client settings.
kubernetesClient.rateLimiter.burstint200Burst controls the maximum queries per second that the client is allowed to issue in a short burst.
kubernetesClient.rateLimiter.qpsint100QPS or queries per second. Controls how many queries per second the client should be allowed to issue, not accounting for bursts.
kubernetesClient.useCoreObjectCacheboolfalseIf true, Evictor uses informer-backed caches for core Kubernetes object reads (pods, nodes, volume objects), which reduces API server load. When false, all such reads go straight to the API server.
leaderElectionobject{"enabled":true}Specifies leader election parameters.
leaderElection.enabledbooltrueWhether to enable leader election.
liveMigrationobject{"enabled":true,"useK8sClientCache":true}Specifies LIVE migration settings. This options assumes that the CAST AI LIVE components are already installed in the cluster.
managedByCASTAIbooltrueSpecifies whether the Evictor was installed using mothership and is automatically updated by CAST AI. Alternative scenarios are, when CAST AI is not managing charts, and customers' are install them with Argo CD/Terraform or something else.
maxNodesToEvictPerCycleint20Specifies the max nodes evictor can evict in a single cycle.
minNodesToEvictPerCycleint5Minimum number of nodes to consider per eviction cycle.
nameOverridestring""
nodeGracePeriodMinutesint5Specifies the grace period after a node is created before it is considered for eviction The number of minutes a node must exist before it will be considered.
nodeSelectorobject{}
openshift.scc.enabledbooltrue
openshift.scc.priorityint5
openshift.scc.useRestrictedProfileboolfalse
overrideEnvFromboolfalseIf set to true, completely overrides the default envFrom section for the evictor container. When false (default), values provided here will be appended to the chart's defaults.
podAnnotationsobject{}
podEvictionFailureBackOffstring"5s"Wait time before retrying after a pod eviction request fails.
podLabelsobject{}
podMutationsobject{"enabled":true}Specifies settings for working with PodMutation CRs.
pricingModelobject{"baseCPUCost":"7.0","baseMemCost":"1.0","enabled":false,"spotDiscount":"0.5"}Cost coefficients used when pricing-awareness is enabled.
pricingModel.baseCPUCoststring"7.0"Cost coefficient per CPU core.
pricingModel.baseMemCoststring"1.0"Cost coefficient per GiB of memory.
pricingModel.enabledboolfalseEnable pricing-aware drain candidate selection (prefer draining more expensive nodes first).
pricingModel.spotDiscountstring"0.5"Fractional discount applied to spot instance price relative to on-demand.
rbac.enabledbooltrue
replicaCountint1
resourcesobject{}
scopedModeboolfalse
securityContext.fsGroupint1004
securityContext.runAsGroupint1004
securityContext.runAsNonRootbooltrue
securityContext.runAsUserint1004
securityContext.seccompProfile.typestring"RuntimeDefault"
service.portint8080
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}Annotations to add to the service account.
serviceAccount.createbooltrueSpecifies whether a service account should be created.
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template.
softTaintingobject{"enabled":false}Specifies soft tainting parameters.
softTainting.enabledboolfalseWhether to enable soft tainting of evicted nodes.
targetNodePercentageint10Percentage of eligible nodes to consider per cycle, applied after min/max target node bounds.
tolerationslist[]
updateStrategyobject{"type":"Recreate"}Controls deployment.spec.strategy field.
windowsboolfalseEnable eviction of pods and nodes running Windows workloads.
woopobject{"enabled":true,"useK8sClientCache":true}Specifies settings for working with WOOP recommendations.

Deploy castai-evictor with OpenTenant

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