castai-pod-mutator

by Cast AI

Helm chartv0.17.15App v0.17.15Verified publisher

CAST AI Pod Mutator.

About this chart

castai-pod-mutator

CAST AI Pod Mutator.

Values

KeyTypeDefaultDescription
additionalEnvobject{}Used to set additional environment variables for the pod-mutator container.
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-mutator"
affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].topologyKeystring"kubernetes.io/hostname"
castai.apiKeystring""
castai.apiKeySecretRefstring""
castai.apiUrlstring"https://api.cast.ai"
castai.clusterIDstring""
castai.clusterIdSecretKeyRef.keystring"CLUSTER_ID"
castai.clusterIdSecretKeyRef.namestring""
castai.configMapRefstring""
containerSecurityContext.allowPrivilegeEscalationboolfalse
containerSecurityContext.capabilities.drop[0]string"ALL"
containerSecurityContext.readOnlyRootFilesystembooltrue
dependencyCheck.enabledbooltrueEnable or disable dependency check preinstall hook
dnsPolicystring""DNS Policy Override - Needed when using custom CNI's. Defaults to "ClusterFirstWithHostNet" if hostNetwork is true
enableTopologySpreadConstraintsboolfalse
enforcer.enabledboolfalse
enforcer.maxEvictionsPerMinuteint60
enforcer.scanIntervalstring"10s"
envFromlist[]Used to set additional environment variables for the pod-mutator container via configMaps or secrets.
fullnameOverridestring"castai-pod-mutator"
globalobject{"castai":{"apiKeySecretRef":""},"commonAnnotations":{},"commonLabels":{},"imagePullSecrets":[],"registry":""}Values to apply for the parent and child chart resources.
global.commonAnnotationsobject{}Annotations to add to all resources.
global.commonLabelsobject{}Labels to add to all resources.
global.registrystring""Container registry prefix for all images (e.g. "my-registry.example.com"). When set, it is prepended to all image repositories.
healthProbePortint8081Port for liveness and readiness probes
hostNetworkboolfalse
image.pullPolicystring"IfNotPresent"
image.repositorystring"ghcr.io/castai/images/pod-mutator"
image.tagstring""
leaderElection.enabledboolfalse
leaderElection.leaseNamestring"castai-pod-mutator-leader-election"
logLevelint0Log level of the pod-mutator: 1 = debug, 0 = info, -1 = warn, -2 = error.
metricsPortint8080Port for the metrics HTTP server.
mutator.processingDelaystring"30s"
nameOverridestring""
openshift.scc.enabledbooltrue
openshift.scc.priorityint5
openshift.scc.useRestrictedProfileboolfalse
podAnnotationsobject{}Annotations added to each pod.
podLabelsobject{}
podSecurityContext.fsGroupint1005
podSecurityContext.runAsGroupint1005
podSecurityContext.runAsNonRootbooltrue
podSecurityContext.runAsUserint1005
podSecurityContext.seccompProfile.typestring"RuntimeDefault"
preStopHookobject{"enabled":true}Controls whether the lifecycle.preStop.sleep hook is added to the pod-mutator container. The preStop hook is used to prevent mutation failures during pod-mutator restarts by allowing the container to finish in-flight webhook requests before it is terminated.
priorityClass.enabledbooltrue
priorityClass.namestring"system-cluster-critical"
replicasint2
resources.limits.memorystring"1Gi"
resources.requests.cpustring"20m"
resources.requests.memorystring"512Mi"
service.webhookPortNamestring"https"
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
tolerations[0].keystring"CriticalAddonsOnly"
tolerations[0].operatorstring"Exists"
topologySpreadConstraints[0].labelSelector.matchLabels."app.kubernetes.io/name"string"castai-pod-mutator"
topologySpreadConstraints[0].maxSkewint1
topologySpreadConstraints[0].topologyKeystring"kubernetes.io/hostname"
topologySpreadConstraints[0].whenUnsatisfiablestring"ScheduleAnyway"
webhook.failurePolicystring"Ignore"
webhook.reinvocationPolicystring"Never"
webhook.urlstring""

Deploy castai-pod-mutator 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-mutator 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-mutator is pinned at v0.17.15 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