castai-pod-pinner

by Cast AI

Helm chartv1.15.3App v1.15.3Verified publisher

CAST AI Pod Pinning deployment chart.

About this chart

castai-pod-pinner

CAST AI Pod Pinning deployment chart.

Requirements

RepositoryNameVersion
file://child-charts/castai-pod-pinner-extcastai-pod-pinner-ext1.1.0

Values

KeyTypeDefaultDescription
additionalEnvobject{}Used to set additional environment variables for the pod-pinner container.
affinityobject{"nodeAffinity":{"preferredDuringSchedulingIgnoredDuringExecution":[{"preference":{"matchExpressions":[{"key":"provisioner.cast.ai/managed-by","operator":"In","values":["cast.ai"]}]},"weight":100}],"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"kubernetes.io/os","operator":"NotIn","values":["windows"]}]}]}}}Affinity for the pod-pinner pod.
castaiobject{"apiKey":"","apiKeySecretRef":"","apiURL":"https://api.cast.ai","clusterID":"","clusterIdSecretKeyRef":{"key":"CLUSTER_ID","name":""},"grpcURL":"grpc.cast.ai:443"}CAST AI settings for the pod-pinner.
castai.apiKeystring""The CAST AI API key. Either this or apiKeySecretRef must be provided.
castai.apiKeySecretRefstring""Kubernetes Secret reference for the CAST AI API key. Either this or apiKey must be provided.
castai.apiURLstring"https://api.cast.ai"The CAST AI API URL.
castai.clusterIDstring""The CAST AI cluster ID.
castai.grpcURLstring"grpc.cast.ai:443"The CAST AI gRPC URL.
dnsPolicystring""DNS policy for the pod-pinner pod. Needed with custom CNIs. Defaults to "ClusterFirstWithHostNet" when hostNetwork is enabled.
envFromlist[]Used to set additional environment variables for the pod-pinner container via configMaps or secrets.
globalobject{"commonAnnotations":{},"commonLabels":{},"fullnameOverride":"castai-pod-pinner","nameOverride":"","serviceAccount":{"annotations":{},"create":true,"name":""}}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.fullnameOverridestring"castai-pod-pinner"Override the fullname of resources.
global.nameOverridestring""Override the name of the chart.
global.serviceAccountobject{"annotations":{},"create":true,"name":""}Service account to use for the pod-pinner.
global.serviceAccount.annotationsobject{}Annotations to add to the service account
global.serviceAccount.createbooltrueSpecifies whether a service account should be created
global.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
healthProbeobject{"port":9091}Health probe settings for the pod-pinner container.
healthProbe.portint9091Port the /healthz and /readyz endpoints listen on (HEALTH_ADDRESS).
hostNetworkboolfalseEnable host networking for the pod-pinner pod. Required when the control plane cannot reach pod IPs directly (e.g. EKS with Calico VXLAN overlay), since the API server must be able to reach the admission webhook.
imageobject{"pullPolicy":"IfNotPresent","repository":"ghcr.io/castai/images/pod-pinner","tag":""}Image settings for the pod-pinner container.
image.pullPolicystring"IfNotPresent"The image pull policy.
image.repositorystring"ghcr.io/castai/images/pod-pinner"The image repository to use.
image.tagstring""Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]Image pull secrets to use for the pod-pinner pod.
managedByCASTAIbooltrueSpecifies whether the Pod Pinner should be managed by CAST AI automatically. Only the exact value "false" disables automatic management of the chart. If set to "false", then the installation, upgrade or any changes have to be managed manually.
metricsobject{"port":9090}Metrics settings for the pod-pinner container.
metrics.portint9090Port the Prometheus metrics endpoint listens on (METRICS_ADDRESS).
nodeSelectorobject{}Node selector for the pod-pinner pod.
podAnnotationsobject{}Extra annotations to add to the pod.
podLabelsobject{}Extra labels to add to the pod.
podSecurityContextobject{}Pod security context.
replicaCountint2Replica count for the pod-pinner deployment.
resourcesobject{"limits":{"memory":"256Mi"},"requests":{"cpu":"20m","memory":"256Mi"}}Pod-pinner container resources.
securityContextobject{"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":1000}Security context for the pod-pinner container.
serviceobject{"port":8443,"type":"ClusterIP"}Service settings for the pod-pinner.
service.portint8443The service port to use. The port is restricted to certain values because the webhook server uses this port.
service.typestring"ClusterIP"The service type to use.
tolerationslist[]Tolerations for the pod-pinner pod.
webhookobject{"failurePolicy":"Ignore","url":""}Webhook settings for the pod-pinner.
webhook.failurePolicystring"Ignore"Overrides the failure policy of the webhook whose default is Ignore.
webhook.urlstring""Overrides webhook service routing and uses the provided url instead.

Deploy castai-pod-pinner 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-pinner 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-pinner is pinned at v1.15.3 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