castai-ai-optimizer-proxy
by Cast AI
Helm chartv0.0.278App v1.2.43Verified publisher
AI Optimizer Proxy deployment chart.
About this chart
castai-ai-optimizer-proxy
AI Optimizer Proxy deployment chart.
AiBrix chart
AiBrix does not have an official helm chart. So in order to package the AiBrix deployments, we use helmify to
convert AiBrix kustomize resources into a helm chart.
In order to update the chart, use the helmify-aibrix.sh script.
Requirements
| Repository | Name | Version |
|---|---|---|
| file://child-charts/aibrix | aibrix | 0.1.2 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalEnv | object | {} | |
| additionalSecretEnv | object | {} | |
| affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].key | string | "app.kubernetes.io/name" | |
| affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].operator | string | "In" | |
| affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].labelSelector.matchExpressions[0].values[0] | string | "castai-ai-optimizer-proxy" | |
| affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].topologyKey | string | "kubernetes.io/hostname" | |
| aibrix.controllerManager.manager.args[0] | string | "--leader-elect" | |
| aibrix.controllerManager.manager.args[1] | string | "--leader-election-id=castai-aibrix-pod-autoscaler-controller" | |
| aibrix.controllerManager.manager.args[2] | string | "--health-probe-bind-address=:8081" | |
| aibrix.controllerManager.manager.args[3] | string | "--metrics-bind-address=0" | |
| aibrix.controllerManager.manager.args[4] | string | "--controllers=pod-autoscaler-controller" | |
| aibrix.controllerManager.manager.args[5] | string | "--disable-webhook" | |
| aibrix.controllerManager.manager.args[6] | string | "--leader-election-namespace=castai-agent" | |
| aibrix.controllerManager.manager.image.repository | string | "us-docker.pkg.dev/castai-hub/library/aibrix/controller-manager" | |
| aibrix.controllerManager.manager.image.tag | string | "v0.6.0" | |
| aibrix.controllerManager.manager.resources.limits.memory | string | "64Mi" | |
| aibrix.controllerManager.manager.resources.requests.cpu | string | "10m" | |
| aibrix.controllerManager.manager.resources.requests.memory | string | "64Mi" | |
| aibrix.enabled | bool | true | |
| aibrix.fullnameOverride | string | "castai-aibrix" | |
| autoModel.aliases | list | [] | |
| autoModel.cacheTtl | string | "24h" | |
| autoModel.fallback.model | string | "deepseek-v4-flash-0731" | |
| autoModel.fallback.reasoningEffort | string | "high" | |
| autoModel.imageFallback.model | string | "glm-5.3-flash" | |
| autoModel.imageFallback.reasoningEffort | string | "max" | |
| autoModel.name | string | "auto" | |
| autoModel.routerEndpoint | string | "http://llm-router-service.ai-optimizer.svc.cluster.local:8000/route" | |
| autoModel.timeout | string | "5s" | |
| batch.fileSizeLimitBytes | int | 0 | |
| castai.apiKey | string | "" | |
| castai.apiKeyFallback | string | "" | |
| castai.apiKeySecretRef | string | "" | |
| castai.apiURL | string | "https://api.cast.ai" | |
| castai.clusterID | string | "" | |
| castai.telemetryApiKeySecretRef | string | "" | |
| castai.telemetryClusterID | string | "" | |
| commonAnnotations | object | {} | Annotations to add to all resources. |
| commonLabels | object | {} | Labels to add to all resources. |
| createNamespace | bool | true | |
| deploy | bool | true | |
| fullnameOverride | string | "castai-ai-optimizer-proxy" | |
| guardrails.failClosed | bool | true | |
| guardrails.judgeTimeout | string | "30s" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "ghcr.io/castai/images/ai-optimizer-proxy" | |
| image.tag | string | "" | |
| imagePullSecrets | list | [] | |
| ingress.annotations | object | {} | |
| ingress.className | string | "" | |
| ingress.enabled | bool | false | |
| ingress.hosts[0].host | string | "chart-example.local" | |
| ingress.hosts[0].paths[0].path | string | "/" | |
| ingress.hosts[0].paths[0].pathType | string | "ImplementationSpecific" | |
| ingress.tls | list | [] | |
| metricScraper.additionalEnv | object | {} | |
| metricScraper.affinity | object | {} | |
| metricScraper.collectionName | string | "ai_optimizer_hosted_model_metrics_instant" | |
| metricScraper.enabled | bool | true | |
| metricScraper.image.pullPolicy | string | "IfNotPresent" | |
| metricScraper.image.repository | string | "ghcr.io/castai/images/ai-optimizer-metric-scraper" | |
| metricScraper.image.tag | string | "v0.0.8" | |
| metricScraper.metricsEndpoint | string | "" | |
| metricScraper.nodeSelector | object | {} | |
| metricScraper.podAnnotations | object | {} | |
| metricScraper.podLabelSelector | string | "ai-optimizer.cast.ai/provider-id" | |
| metricScraper.podLabels | object | {} | |
| metricScraper.port | string | "8080" | |
| metricScraper.resources.limits.memory | string | "64Mi" | |
| metricScraper.resources.requests.cpu | string | "10m" | |
| metricScraper.resources.requests.memory | string | "64Mi" | |
| metricScraper.scrapeInterval | string | "10s" | |
| metricScraper.targetNamespace | string | "castai-llms" | |
| metricScraper.tolerations | list | [] | |
| metrics.port | string | "2112" | Port for the internal Prometheus /metrics endpoint. |
| nameOverride | string | "" | |
| nodeSelector | object | {} | |
| organizationWhitelist | list | [] | Organization IDs whose API keys may use the proxy, as a YAML array; it is rendered into the ORGANIZATION_WHITELIST env var as a YAML array. Empty allows every organization; with at least one entry, requests from any other organization get a 403. |
| pdb.minAvailable | int | 1 | |
| podAnnotations."workloads.cast.ai/configuration".vertical.applyType | string | "immediate" | |
| podAnnotations."workloads.cast.ai/configuration".vertical.containers.ai-optimizer-proxy-router.cpu.min | string | "30m" | |
| podAnnotations."workloads.cast.ai/configuration".vertical.containers.ai-optimizer-proxy-router.memory.min | string | "2Gi" | |
| podAnnotations."workloads.cast.ai/configuration".vertical.containers.ai-optimizer-proxy.cpu.min | string | "20m" | |
| podAnnotations."workloads.cast.ai/configuration".vertical.containers.ai-optimizer-proxy.memory.min | string | "32Mi" | |
| podLabels | object | {} | |
| podSecurityContext | object | {} | |
| replicaCount | int | 2 | |
| resources.limits.memory | string | "64Mi" | |
| resources.requests.cpu | string | "20m" | |
| resources.requests.memory | string | "64Mi" | |
| router.awsCredentials.enabled | bool | false | |
| router.chatCompletionsEndpoint | string | "http://localhost:10000/v1/chat/completions" | |
| router.containerPort | string | "10000" | |
| router.countTokensEndpoint | string | "http://localhost:10000/v1/messages/count_tokens" | |
| router.embeddingsEndpoint | string | "http://localhost:10000/v1/embeddings" | |
| router.healthzEndpoint | string | "http://localhost:10000/healthz" | |
| router.image.pullPolicy | string | "IfNotPresent" | |
| router.image.repository | string | "ghcr.io/castai/images/ai-optimizer-router" | |
| router.image.tag | string | "v0.0.57" | |
| router.messagesEndpoint | string | "http://localhost:10000/v1/messages" | |
| router.rerankingEndpoint | string | "http://localhost:10000/rerank" | |
| router.resources.limits.memory | string | "3Gi" | |
| router.resources.requests.cpu | string | "30m" | |
| router.resources.requests.memory | string | "2Gi" | |
| router.responsesEndpoint | string | "http://localhost:10000/v1/responses" | |
| router.searchEndpoint | string | "http://localhost:8080/v1/search" | |
| router.systemoneEndpoint | string | "http://localhost:10000/v1/systemone" | |
| search.defaultProvider | string | "exa" | Default search provider (tavily or exa) |
| search.exa.apiKey | string | "" | API key for Exa search provider |
| search.exa.endpoint | string | "https://api.exa.ai/search" | Exa API endpoint |
| search.tavily.apiKey | string | "" | API key for Tavily search provider |
| search.tavily.endpoint | string | "https://api.tavily.com/search" | Tavily API endpoint |
| search.timeout | string | "30s" | HTTP timeout for search requests |
| securityContext.capabilities.drop[0] | string | "ALL" | |
| securityContext.readOnlyRootFilesystem | bool | true | |
| securityContext.runAsNonRoot | bool | true | |
| securityContext.runAsUser | int | 1000 | |
| service.annotations | object | {} | |
| service.port | int | 443 | |
| service.targetPort | int | 8080 | |
| service.type | string | "ClusterIP" | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "" | |
| sseKeepaliveInterval | string | "30s" | |
| storage.enabled | bool | false | |
| storage.gcs.bucketName | string | "" | |
| storage.gcs.credentialsJson | string | "" | |
| storage.gcs.credentialsSecretName | string | "" | |
| storage.gcs.projectId | string | "" | |
| storage.s3.accessKeyId | string | "" | |
| storage.s3.bucketName | string | "" | |
| storage.s3.credentialsSecretName | string | "" | |
| storage.s3.region | string | "" | |
| storage.s3.secretAccessKey | string | "" | |
| storage.type | string | "s3" | |
| thinkingContinuity.doneHoldTimeout | string | "200ms" | |
| thinkingContinuity.enabled | bool | false | |
| thinkingContinuity.maxEntryBytes | string | "262144" | |
| thinkingContinuity.ttl | string | "6h" | |
| tolerations | list | [] |
Deploy castai-ai-optimizer-proxy with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has castai-ai-optimizer-proxy 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-ai-optimizer-proxy is pinned at v0.0.278 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