aibrix
by danchev
Cloud-native LLM inference infrastructure with distributed inference, KV caching, intelligent routing, and autoscaling capabilities
About this chart
aibrix
Cloud-native LLM inference infrastructure with distributed inference, KV caching, intelligent routing, and autoscaling capabilities
Homepage: https://github.com/vllm-project/aibrix
Maintainers
| Name | Url | |
|---|---|---|
| Dobri Danchev | [email protected] | https://danchev.github.io/helm-charts/ |
Source Code
- https://github.com/danchev/helm-charts/tree/master/charts/aibrix
- https://github.com/vllm-project/aibrix
- https://github.com/vllm-project/aibrix/tree/v0.8.0/dist/chart
This chart is derived from the AIBrix Team's upstream chart.
Installation
Dependencies
kubectl apply --server-side -k https://github.com/vllm-project/aibrix/config/dependency?ref=v0.8.0
Optional integrations need Prometheus Operator, KubeRay operator, or a tracing collector, as applicable.
Helm Install
helm repo add danchev https://danchev.github.io/helm-charts
helm repo update danchev
helm install aibrix danchev/aibrix --version 0.8.0 -n aibrix-system --create-namespace
Add -f my-values.yaml to customize the installation.
Configuration requirements
- Automatic routing requires release name
aibrix(orfullnameOverride: aibrix) in namespaceaibrix-system. - Use one webhook-enabled control plane per cluster; webhook names are shared.
- Bearer authentication covers plugin-processed requests, not every Gateway route.
See troubleshooting for details.
Helm upgrade
Follow the upgrade guide for dependency, CRD, and values changes.
Helm Uninstall
helm uninstall aibrix -n aibrix-system
Values
| Key | Type | Default | Description |
|---|---|---|---|
| certmanager.enable | bool | false | Unused in this chart; controller metrics use HTTP. |
| controllerManager.affinity | object | {} | |
| controllerManager.container.envs | object | {} | |
| controllerManager.container.image.imagePullPolicy | string | "IfNotPresent" | |
| controllerManager.container.image.repository | string | "aibrix/controller-manager" | |
| controllerManager.container.image.tag | string | "v0.8.0" | |
| controllerManager.container.probes.liveness.httpGet.path | string | "/healthz" | |
| controllerManager.container.probes.liveness.httpGet.port | int | 8081 | |
| controllerManager.container.probes.liveness.initialDelaySeconds | int | 15 | |
| controllerManager.container.probes.liveness.periodSeconds | int | 20 | |
| controllerManager.container.probes.readiness.httpGet.path | string | "/readyz" | |
| controllerManager.container.probes.readiness.httpGet.port | int | 8081 | |
| controllerManager.container.probes.readiness.initialDelaySeconds | int | 5 | |
| controllerManager.container.probes.readiness.periodSeconds | int | 10 | |
| controllerManager.container.resources.limits.cpu | string | "500m" | |
| controllerManager.container.resources.limits.memory | string | "128Mi" | |
| controllerManager.container.resources.requests.cpu | string | "10m" | |
| controllerManager.container.resources.requests.memory | string | "64Mi" | |
| controllerManager.gatewayTimeoutSeconds | int | 120 | |
| controllerManager.imagePullSecrets | list | [] | |
| controllerManager.replicas | int | 1 | |
| controllerManager.serviceAccount.annotations | object | {} | |
| controllerManager.serviceAccount.create | bool | true | |
| controllerManager.serviceAccount.name | string | "" | |
| controllerManager.tolerations | list | [] | |
| crd.enable | bool | true | Unused; use helm install --skip-crds |
| crd.keep | bool | true | Unused; Helm retains CRDs on uninstall |
| fullnameOverride | string | "" | |
| gateway.backendTrafficPolicy.circuitBreaker.maxConnections | int | 1024 | |
| gateway.backendTrafficPolicy.circuitBreaker.maxParallelRequests | int | 1024 | |
| gateway.backendTrafficPolicy.circuitBreaker.maxParallelRetries | int | 1024 | |
| gateway.backendTrafficPolicy.circuitBreaker.maxPendingRequests | int | 1024 | |
| gateway.backendTrafficPolicy.circuitBreaker.maxRequestsPerConnection | int | 1024 | |
| gateway.backendTrafficPolicy.http2.maxConcurrentStreams | int | 1024 | |
| gateway.clientTrafficPolicy.connection.bufferLimit | int | 4194304 | |
| gateway.clientTrafficPolicy.connection.connectionLimit.value | int | 1024 | |
| gateway.clientTrafficPolicy.http2.maxConcurrentStreams | int | 1024 | |
| gateway.enable | bool | true | |
| gateway.envoyAsSideCar | bool | false | |
| gateway.envoyPatchPolicy.circuitBreakers.maxConnections | int | 1024 | |
| gateway.envoyPatchPolicy.circuitBreakers.maxPendingRequests | int | 1024 | |
| gateway.envoyPatchPolicy.circuitBreakers.maxRequests | int | 1024 | |
| gateway.envoyPatchPolicy.circuitBreakers.trackRemaining | bool | true | |
| gateway.envoyPatchPolicy.preserveExternalRequestID | bool | false | |
| gateway.envoyPatchPolicy.route.connectTimeout | string | "6s" | |
| gateway.envoyPatchPolicy.route.idleTimeout | string | "300s" | |
| gateway.envoyPatchPolicy.route.timeout | string | "120s" | |
| gateway.envoyProxy.accessLog.enabled | bool | false | |
| gateway.envoyProxy.accessLog.extProcFilterName | string | "" | |
| gateway.envoyProxy.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].preference.matchExpressions[0].key | string | "nvidia.com/gpu.present" | |
| gateway.envoyProxy.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].preference.matchExpressions[0].operator | string | "NotIn" | |
| gateway.envoyProxy.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].preference.matchExpressions[0].values[0] | string | "true" | |
| gateway.envoyProxy.affinity.nodeAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].weight | int | 100 | |
| gateway.envoyProxy.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].key | string | "app.kubernetes.io/name" | |
| gateway.envoyProxy.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].operator | string | "In" | |
| gateway.envoyProxy.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.labelSelector.matchExpressions[0].values[0] | string | "envoy" | |
| gateway.envoyProxy.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].podAffinityTerm.topologyKey | string | "kubernetes.io/hostname" | |
| gateway.envoyProxy.affinity.podAntiAffinity.preferredDuringSchedulingIgnoredDuringExecution[0].weight | int | 100 | |
| gateway.envoyProxy.container.envoy.image | string | "envoyproxy/envoy:v1.33.2" | |
| gateway.envoyProxy.container.envoy.resources.limits.cpu | string | "1" | |
| gateway.envoyProxy.container.envoy.resources.limits.memory | string | "1Gi" | |
| gateway.envoyProxy.container.envoy.resources.requests.cpu | string | "1" | |
| gateway.envoyProxy.container.envoy.resources.requests.memory | string | "1Gi" | |
| gateway.envoyProxy.container.shutdownManager.image | string | "envoyproxy/gateway:v1.2.8" | |
| gateway.envoyProxy.container.shutdownManager.resources.requests.cpu | string | "10m" | |
| gateway.envoyProxy.container.shutdownManager.resources.requests.memory | string | "32Mi" | |
| gateway.envoyProxy.imagePullSecrets | list | [] | |
| gateway.envoyProxy.replicas | int | 1 | |
| gateway.envoyProxy.service | object | {} | Managed gateway Service overrides; empty inherits Envoy Gateway v1.2.8 LoadBalancer default. |
| gateway.envoyProxy.tolerations | list | [] | |
| gateway.envoySideCar.ports.http | int | 10080 | |
| gateway.http.enabled | bool | true | |
| gateway.tls.autoGenerate | bool | false | |
| gateway.tls.enabled | bool | false | |
| gateway.tls.hostname | string | "" | |
| gateway.tls.port | int | 443 | |
| gateway.tls.secretName | string | "" | |
| gateway.tls.validityDays | int | 365 | |
| gatewayPlugin.auth.bearerToken | string | "" | |
| gatewayPlugin.container.envs.AIBRIX_GRPC_MAX_MESSAGE_SIZE_BYTES | string | "4194304" | |
| gatewayPlugin.container.envs.AIBRIX_LOAD_BALANCE_IMBALANCE_MIN_GAP | string | "16" | |
| gatewayPlugin.container.envs.AIBRIX_POD_METRIC_REFRESH_INTERVAL_MS | string | "50" | |
| gatewayPlugin.container.envs.AIBRIX_PREFILL_REQUEST_TIMEOUT | string | "60" | |
| gatewayPlugin.container.envs.AIBRIX_PREFIX_CACHE_BLOCK_SIZE | string | "128" | |
| gatewayPlugin.container.envs.AIBRIX_PREFIX_CACHE_STANDARD_DEVIATION_FACTOR | string | "2" | |
| gatewayPlugin.container.envs.AIBRIX_PREFIX_CACHE_TOKENIZER_TYPE | string | "character" | |
| gatewayPlugin.container.envs.AIBRIX_STATESYNC_ENABLED | string | "false" | |
| gatewayPlugin.container.image.imagePullPolicy | string | "IfNotPresent" | |
| gatewayPlugin.container.image.repository | string | "aibrix/gateway-plugins" | |
| gatewayPlugin.container.image.tag | string | "v0.8.0" | |
| gatewayPlugin.container.probes.liveness.failureThreshold | int | 3 | |
| gatewayPlugin.container.probes.liveness.grpc.port | int | 50052 | |
| gatewayPlugin.container.probes.liveness.initialDelaySeconds | int | 5 | |
| gatewayPlugin.container.probes.liveness.periodSeconds | int | 10 | |
| gatewayPlugin.container.probes.liveness.timeoutSeconds | int | 3 | |
| gatewayPlugin.container.probes.readiness.failureThreshold | int | 3 | |
| gatewayPlugin.container.probes.readiness.grpc.port | int | 50052 | |
| gatewayPlugin.container.probes.readiness.initialDelaySeconds | int | 5 | |
| gatewayPlugin.container.probes.readiness.periodSeconds | int | 10 | |
| gatewayPlugin.container.probes.readiness.timeoutSeconds | int | 3 | |
| gatewayPlugin.container.resources.limits.cpu | string | "1" | |
| gatewayPlugin.container.resources.limits.memory | string | "1Gi" | |
| gatewayPlugin.container.resources.requests.cpu | string | "1" | |
| gatewayPlugin.container.resources.requests.memory | string | "1Gi" | |
| gatewayPlugin.dependencies.redis.host | string | "" | |
| gatewayPlugin.dependencies.redis.password | string | "" | |
| gatewayPlugin.dependencies.redis.port | int | 6379 | |
| gatewayPlugin.extProc.backendSettings.circuitBreaker.maxConnections | int | 1024 | |
| gatewayPlugin.extProc.backendSettings.circuitBreaker.maxParallelRequests | int | 1024 | |
| gatewayPlugin.extProc.backendSettings.circuitBreaker.maxParallelRetries | int | 1024 | |
| gatewayPlugin.extProc.backendSettings.circuitBreaker.maxPendingRequests | int | 1024 | |
| gatewayPlugin.extProc.backendSettings.circuitBreaker.maxRequestsPerConnection | int | 1024 | |
| gatewayPlugin.failOpen | bool | false | |
| gatewayPlugin.imagePullSecrets | list | [] | |
| gatewayPlugin.initContainer.image.imagePullPolicy | string | "IfNotPresent" | |
| gatewayPlugin.initContainer.image.repository | string | "busybox" | |
| gatewayPlugin.initContainer.image.tag | string | "stable" | |
| gatewayPlugin.messageTimeout | string | "60s" | |
| gatewayPlugin.replicaCount | int | 1 | |
| gatewayPlugin.service.type | string | "ClusterIP" | |
| gatewayPlugin.serviceAccount.annotations | object | {} | |
| gatewayPlugin.serviceAccount.create | bool | true | |
| gatewayPlugin.serviceAccount.name | string | "" | |
| gatewayPlugin.tolerations | list | [] | |
| global.imagePullSecrets | list | [] | |
| gpuOptimizer.affinity | object | {} | |
| gpuOptimizer.container.image.imagePullPolicy | string | "IfNotPresent" | |
| gpuOptimizer.container.image.repository | string | "aibrix/metadata-service" | |
| gpuOptimizer.container.image.tag | string | "v0.8.0" | |
| gpuOptimizer.container.resources.limits.cpu | string | "500m" | |
| gpuOptimizer.container.resources.limits.memory | string | "256Mi" | |
| gpuOptimizer.container.resources.requests.cpu | string | "10m" | |
| gpuOptimizer.container.resources.requests.memory | string | "64Mi" | |
| gpuOptimizer.dependencies.redis.host | string | "" | |
| gpuOptimizer.dependencies.redis.password | string | "" | |
| gpuOptimizer.dependencies.redis.port | int | 6379 | |
| gpuOptimizer.imagePullSecrets | list | [] | |
| gpuOptimizer.replicaCount | int | 1 | |
| gpuOptimizer.serviceAccount.annotations | object | {} | |
| gpuOptimizer.serviceAccount.create | bool | true | |
| gpuOptimizer.serviceAccount.name | string | "" | |
| gpuOptimizer.tolerations | list | [] | |
| metadata.redis.container.image.imagePullPolicy | string | "IfNotPresent" | |
| metadata.redis.container.image.repository | string | "redis" | |
| metadata.redis.container.image.tag | string | "7.4" | |
| metadata.redis.container.resources.requests.cpu | string | "100m" | |
| metadata.redis.container.resources.requests.memory | string | "100Mi" | |
| metadata.redis.enablePassword | bool | false | |
| metadata.redis.enabled | bool | true | |
| metadata.redis.imagePullSecrets | list | [] | |
| metadata.redis.password | string | "" | |
| metadata.redis.replicas | int | 1 | |
| metadata.service.affinity | object | {} | |
| metadata.service.container.image.imagePullPolicy | string | "IfNotPresent" | |
| metadata.service.container.image.repository | string | "aibrix/metadata-service" | |
| metadata.service.container.image.tag | string | "v0.8.0" | |
| metadata.service.container.resour |
Deploy aibrix with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has aibrix 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 chartaibrix is pinned at v0.8.0 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