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
| Key | Type | Default | Description |
|---|---|---|---|
| additionalEnv.CONTROLLER_MEMORY_PRESSURE_MIN_RESTART_INTERVAL | string | "10m" | |
| additionalEnv.PPROF_PORT | string | "6060" | |
| additionalSecretEnv | object | {} | |
| affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].preference.matchExpressions[0].key | string | "provisioner.cast.ai/managed-by" | |
| affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].preference.matchExpressions[0].operator | string | "In" | |
| affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].preference.matchExpressions[0].values[0] | string | "cast.ai" | |
| affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].weight | int | 100 | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].key | string | "kubernetes.io/os" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].operator | string | "NotIn" | |
| affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[0] | string | "windows" | |
| allowReadIngress | bool | true | Allow to read ingress resources. Needed for k8s security and compliance. |
| allowReadRBAC | bool | true | Allow to read rbac resources. Required for security and k8s compliance reporting. |
| apiKey | string | "" | Token to be used for authorizing agent access to the API. |
| apiKeySecretRef | string | "" | 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"]. |
| apiURL | string | "https://api.cast.ai" | URL to the CAST AI API server. |
| clusterVPA | object | {"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.enabled | bool | false | Opt 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. |
| commonAnnotations | object | {} | Annotations to add to all resources. |
| commonLabels | object | {} | Labels to add to all resources. |
| containerSecurityContext.allowPrivilegeEscalation | bool | false | |
| containerSecurityContext.capabilities.drop[0] | string | "ALL" | |
| containerSecurityContext.readOnlyRootFilesystem | bool | true | |
| containerSecurityContext.runAsNonRoot | bool | true | |
| createNamespace | bool | true | Specifies whether a namespace should be created. |
| dnsPolicy | string | "" | |
| envFrom | list | [] | Used to set additional environment variables for the pod-mutator container via configMaps or secrets. |
| extraVolumeMounts | list | [] | Used to set additional volume mounts. |
| extraVolumes | list | [] | Used to set additional volumes. |
| fullnameOverride | string | "castai-agent" | |
| global.castai.apiKeySecretRef | string | "" | |
| global.imagePullSecrets | list | [] | |
| global.registry | string | "" | |
| grpcURL | string | "grpc.cast.ai:443" | gRPC endpoint URL. When set, it is included in the agent-metadata ConfigMap |
| hostNetwork.enabled | bool | false | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "ghcr.io/castai/images/agent" | |
| imagePullSecrets | list | [] | what secret should be used for pulling the image |
| livenessProbe.failureThreshold | int | 3 | |
| livenessProbe.initialDelaySeconds | int | 10 | |
| livenessProbe.periodSeconds | int | 10 | |
| livenessProbe.timeoutSeconds | int | 5 | |
| metadataStore.configMapName | string | "castai-agent-metadata" | namespace of config map to store metadata |
| metadataStore.configMapNamespace | string | "castai-agent" | |
| metadataStore.createConfigMap | bool | false | specifies 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.enabled | bool | true | specifies whether agent should store metadata in a config map |
| monitor.resources.limits.memory | string | "512Mi" | |
| monitor.resources.requests.cpu | string | "100m" | |
| monitor.resources.requests.memory | string | "128Mi" | |
| nameOverride | string | "" | |
| namespace | string | "castai-agent" | |
| nodeSelector | object | {} | |
| openshift.scc.enabled | bool | true | |
| openshift.scc.priority | int | 5 | |
| openshift.scc.useRestrictedProfile | bool | false | |
| podAnnotations | object | {} | Annotations to be added to agent pods. |
| podLabels | object | {} | Labels to be added to agent pods. |
| priorityClass.enabled | bool | true | |
| priorityClass.name | string | "system-cluster-critical" | |
| provider | string | "" | Name of the Kubernetes service provider one of: "eks", "gke", "aks", "kops", "anywhere". |
| rbac.configmapsReadAccessNamespaces | list | ["kube-system"] | Namespaces to be granted access to the castai-agent for configmaps read access. |
| rbac.enabled | bool | true | Specifies whether a Clusterrole should be created. |
| readinessProbe.failureThreshold | int | 3 | |
| readinessProbe.initialDelaySeconds | int | 30 | |
| readinessProbe.periodSeconds | int | 10 | |
| readinessProbe.timeoutSeconds | int | 5 | |
| replicaCount | int | 2 | |
| resources.requests.cpu | string | "100m" | |
| resources.requests.memory | string | "128Mi" | |
| securityContext.fsGroup | int | 65532 | |
| securityContext.runAsGroup | int | 65532 | |
| securityContext.runAsNonRoot | bool | true | |
| securityContext.runAsUser | int | 65532 | |
| securityContext.seccompProfile.type | string | "RuntimeDefault" | |
| serviceAccount.annotations | object | {} | Annotations to add to the service account. |
| serviceAccount.create | bool | true | Specifies whether a service account should be created. |
| serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template. |
| tolerations | list | [] | |
| topologySpreadConstraints[0].labelSelector.matchLabels."app.kubernetes.io/name" | string | "castai-agent" | |
| topologySpreadConstraints[0].maxSkew | int | 1 | |
| topologySpreadConstraints[0].topologyKey | string | "kubernetes.io/hostname" | |
| topologySpreadConstraints[0].whenUnsatisfiable | string | "ScheduleAnyway" | |
| trustedCACert | string | "" | CA certificate to add to agent's set of root certificate authorities that client will use when verifying server certificates. |
| trustedCACertSecretRef | string | "" | 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartcastai-agent is pinned at v0.164.6 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