castai-agent

by Cast AI

Helm chartv0.164.6App v0.164.6Verified publisher

CAST AI agent deployment chart.

About this chart

castai-agent

CAST AI agent deployment chart.

Values

KeyTypeDefaultDescription
additionalEnv.CONTROLLER_MEMORY_PRESSURE_MIN_RESTART_INTERVALstring"10m"
additionalEnv.PPROF_PORTstring"6060"
additionalSecretEnvobject{}
affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].preference.matchExpressions[0].keystring"provisioner.cast.ai/managed-by"
affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].preference.matchExpressions[0].operatorstring"In"
affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].preference.matchExpressions[0].values[0]string"cast.ai"
affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].weightint100
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"
allowReadIngressbooltrueAllow to read ingress resources. Needed for k8s security and compliance.
allowReadRBACbooltrueAllow to read rbac resources. Required for security and k8s compliance reporting.
apiKeystring""Token to be used for authorizing agent access to the API.
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"].
apiURLstring"https://api.cast.ai"URL to the CAST AI API server.
clusterVPAobject{"affinityOverride":{},"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 agent 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 agent Deployment) instead of the agent's ServiceAccount. Ignored when serviceAccount.create or rbac.enabled is false.
commonAnnotationsobject{}Annotations to add to all resources.
commonLabelsobject{}Labels to add to all resources.
containerSecurityContext.allowPrivilegeEscalationboolfalse
containerSecurityContext.capabilities.drop[0]string"ALL"
containerSecurityContext.readOnlyRootFilesystembooltrue
containerSecurityContext.runAsNonRootbooltrue
createNamespacebooltrueSpecifies whether a namespace should be created.
dnsPolicystring""
envFromlist[]Used to set additional environment variables for the pod-mutator container via configMaps or secrets.
extraVolumeMountslist[]Used to set additional volume mounts.
extraVolumeslist[]Used to set additional volumes.
fullnameOverridestring"castai-agent"
global.castai.apiKeySecretRefstring""
global.imagePullSecretslist[]
global.registrystring""
grpcURLstring"grpc.cast.ai:443"gRPC endpoint URL. When set, it is included in the agent-metadata ConfigMap
hostNetwork.enabledboolfalse
image.pullPolicystring"IfNotPresent"
image.repositorystring"ghcr.io/castai/images/agent"
imagePullSecretslist[]what secret should be used for pulling the image
livenessProbe.failureThresholdint3
livenessProbe.initialDelaySecondsint10
livenessProbe.periodSecondsint10
livenessProbe.timeoutSecondsint5
metadataStore.configMapNamestring"castai-agent-metadata"namespace of config map to store metadata
metadataStore.configMapNamespacestring"castai-agent"
metadataStore.createConfigMapboolfalsespecifies whether Helm should create the metadata ConfigMap. When false (default), the agent creates it at runtime. Set to true when installing via the umbrella chart so the ConfigMap is available before other sub-charts start.
metadataStore.enabledbooltruespecifies whether agent should store metadata in a config map
monitor.resources.limits.memorystring"512Mi"
monitor.resources.requests.cpustring"100m"
monitor.resources.requests.memorystring"128Mi"
nameOverridestring""
namespacestring"castai-agent"
nodeSelectorobject{}
openshift.scc.enabledbooltrue
openshift.scc.priorityint5
openshift.scc.useRestrictedProfileboolfalse
podAnnotationsobject{}Annotations to be added to agent pods.
podLabelsobject{}Labels to be added to agent pods.
priorityClass.enabledbooltrue
priorityClass.namestring"system-cluster-critical"
providerstring""Name of the Kubernetes service provider one of: "eks", "gke", "aks", "kops", "anywhere".
rbac.configmapsReadAccessNamespaceslist["kube-system"]Namespaces to be granted access to the castai-agent for configmaps read access.
rbac.enabledbooltrueSpecifies whether a Clusterrole should be created.
readinessProbe.failureThresholdint3
readinessProbe.initialDelaySecondsint30
readinessProbe.periodSecondsint10
readinessProbe.timeoutSecondsint5
replicaCountint2
resources.requests.cpustring"100m"
resources.requests.memorystring"128Mi"
securityContext.fsGroupint65532
securityContext.runAsGroupint65532
securityContext.runAsNonRootbooltrue
securityContext.runAsUserint65532
securityContext.seccompProfile.typestring"RuntimeDefault"
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.
tolerationslist[]
topologySpreadConstraints[0].labelSelector.matchLabels."app.kubernetes.io/name"string"castai-agent"
topologySpreadConstraints[0].maxSkewint1
topologySpreadConstraints[0].topologyKeystring"kubernetes.io/hostname"
topologySpreadConstraints[0].whenUnsatisfiablestring"ScheduleAnyway"
trustedCACertstring""CA certificate to add to agent's set of root certificate authorities that client will use when verifying server certificates.
trustedCACertSecretRefstring""Name of secret with CA certificate to be added to agent's set of root certificate authorities. trustedCACert and trustedCACertSecretRef are mutually exclusive. The referenced secret must provide the certificate in .data["TLS_CA_CERT_FILE"].

Agent metadata persistence

The agent writes the resolved CLUSTER_ID and ORGANIZATION_ID into the castai-agent-metadata ConfigMap for consumers that read them (e.g. watchdog via configMapKeyRef). During helm upgrade the chart preserves both keys from the live ConfigMap, so the agent-written values survive the upgrade even before the agent pod restarts and refreshes them.

Deploy castai-agent with OpenTenant

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