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

RepositoryNameVersion
file://child-charts/aibrixaibrix0.1.2

Values

KeyTypeDefaultDescription
additionalEnvobject{}
additionalSecretEnvobject{}
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-ai-optimizer-proxy"
affinity.podAntiAffinity.requiredDuringSchedulingIgnoredDuringExecution[0].topologyKeystring"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.repositorystring"us-docker.pkg.dev/castai-hub/library/aibrix/controller-manager"
aibrix.controllerManager.manager.image.tagstring"v0.6.0"
aibrix.controllerManager.manager.resources.limits.memorystring"64Mi"
aibrix.controllerManager.manager.resources.requests.cpustring"10m"
aibrix.controllerManager.manager.resources.requests.memorystring"64Mi"
aibrix.enabledbooltrue
aibrix.fullnameOverridestring"castai-aibrix"
autoModel.aliaseslist[]
autoModel.cacheTtlstring"24h"
autoModel.fallback.modelstring"deepseek-v4-flash-0731"
autoModel.fallback.reasoningEffortstring"high"
autoModel.imageFallback.modelstring"glm-5.3-flash"
autoModel.imageFallback.reasoningEffortstring"max"
autoModel.namestring"auto"
autoModel.routerEndpointstring"http://llm-router-service.ai-optimizer.svc.cluster.local:8000/route"
autoModel.timeoutstring"5s"
batch.fileSizeLimitBytesint0
castai.apiKeystring""
castai.apiKeyFallbackstring""
castai.apiKeySecretRefstring""
castai.apiURLstring"https://api.cast.ai"
castai.clusterIDstring""
castai.telemetryApiKeySecretRefstring""
castai.telemetryClusterIDstring""
commonAnnotationsobject{}Annotations to add to all resources.
commonLabelsobject{}Labels to add to all resources.
createNamespacebooltrue
deploybooltrue
fullnameOverridestring"castai-ai-optimizer-proxy"
guardrails.failClosedbooltrue
guardrails.judgeTimeoutstring"30s"
image.pullPolicystring"IfNotPresent"
image.repositorystring"ghcr.io/castai/images/ai-optimizer-proxy"
image.tagstring""
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
metricScraper.additionalEnvobject{}
metricScraper.affinityobject{}
metricScraper.collectionNamestring"ai_optimizer_hosted_model_metrics_instant"
metricScraper.enabledbooltrue
metricScraper.image.pullPolicystring"IfNotPresent"
metricScraper.image.repositorystring"ghcr.io/castai/images/ai-optimizer-metric-scraper"
metricScraper.image.tagstring"v0.0.8"
metricScraper.metricsEndpointstring""
metricScraper.nodeSelectorobject{}
metricScraper.podAnnotationsobject{}
metricScraper.podLabelSelectorstring"ai-optimizer.cast.ai/provider-id"
metricScraper.podLabelsobject{}
metricScraper.portstring"8080"
metricScraper.resources.limits.memorystring"64Mi"
metricScraper.resources.requests.cpustring"10m"
metricScraper.resources.requests.memorystring"64Mi"
metricScraper.scrapeIntervalstring"10s"
metricScraper.targetNamespacestring"castai-llms"
metricScraper.tolerationslist[]
metrics.portstring"2112"Port for the internal Prometheus /metrics endpoint.
nameOverridestring""
nodeSelectorobject{}
organizationWhitelistlist[]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.minAvailableint1
podAnnotations."workloads.cast.ai/configuration".vertical.applyTypestring"immediate"
podAnnotations."workloads.cast.ai/configuration".vertical.containers.ai-optimizer-proxy-router.cpu.minstring"30m"
podAnnotations."workloads.cast.ai/configuration".vertical.containers.ai-optimizer-proxy-router.memory.minstring"2Gi"
podAnnotations."workloads.cast.ai/configuration".vertical.containers.ai-optimizer-proxy.cpu.minstring"20m"
podAnnotations."workloads.cast.ai/configuration".vertical.containers.ai-optimizer-proxy.memory.minstring"32Mi"
podLabelsobject{}
podSecurityContextobject{}
replicaCountint2
resources.limits.memorystring"64Mi"
resources.requests.cpustring"20m"
resources.requests.memorystring"64Mi"
router.awsCredentials.enabledboolfalse
router.chatCompletionsEndpointstring"http://localhost:10000/v1/chat/completions"
router.containerPortstring"10000"
router.countTokensEndpointstring"http://localhost:10000/v1/messages/count_tokens"
router.embeddingsEndpointstring"http://localhost:10000/v1/embeddings"
router.healthzEndpointstring"http://localhost:10000/healthz"
router.image.pullPolicystring"IfNotPresent"
router.image.repositorystring"ghcr.io/castai/images/ai-optimizer-router"
router.image.tagstring"v0.0.57"
router.messagesEndpointstring"http://localhost:10000/v1/messages"
router.rerankingEndpointstring"http://localhost:10000/rerank"
router.resources.limits.memorystring"3Gi"
router.resources.requests.cpustring"30m"
router.resources.requests.memorystring"2Gi"
router.responsesEndpointstring"http://localhost:10000/v1/responses"
router.searchEndpointstring"http://localhost:8080/v1/search"
router.systemoneEndpointstring"http://localhost:10000/v1/systemone"
search.defaultProviderstring"exa"Default search provider (tavily or exa)
search.exa.apiKeystring""API key for Exa search provider
search.exa.endpointstring"https://api.exa.ai/search"Exa API endpoint
search.tavily.apiKeystring""API key for Tavily search provider
search.tavily.endpointstring"https://api.tavily.com/search"Tavily API endpoint
search.timeoutstring"30s"HTTP timeout for search requests
securityContext.capabilities.drop[0]string"ALL"
securityContext.readOnlyRootFilesystembooltrue
securityContext.runAsNonRootbooltrue
securityContext.runAsUserint1000
service.annotationsobject{}
service.portint443
service.targetPortint8080
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
sseKeepaliveIntervalstring"30s"
storage.enabledboolfalse
storage.gcs.bucketNamestring""
storage.gcs.credentialsJsonstring""
storage.gcs.credentialsSecretNamestring""
storage.gcs.projectIdstring""
storage.s3.accessKeyIdstring""
storage.s3.bucketNamestring""
storage.s3.credentialsSecretNamestring""
storage.s3.regionstring""
storage.s3.secretAccessKeystring""
storage.typestring"s3"
thinkingContinuity.doneHoldTimeoutstring"200ms"
thinkingContinuity.enabledboolfalse
thinkingContinuity.maxEntryBytesstring"262144"
thinkingContinuity.ttlstring"6h"
tolerationslist[]

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartcastai-ai-optimizer-proxy is pinned at v0.0.278 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