ai-gateway
A high-performance, multi-provider LLM proxy supporting 31 AI providers, 8 routing strategies, and an extensible plugin pipeline.
About this chart
ai-gateway Helm Chart
Helm chart for the Ferro Labs AI Gateway — a high-performance, multi-provider LLM proxy supporting 31 AI providers, 8 routing strategies, and an extensible plugin pipeline.
TL;DR
helm repo add ferro-labs https://ferro-labs.github.io/helm-charts
helm repo update
helm install ferrogw ferro-labs/ai-gateway \
--version 1.2.0 \
--set secrets.adminApiKey="your-admin-key" \
--set secrets.providers.openai="sk-..." \
--set secrets.providers.anthropic="sk-ant-..."
Prerequisites
- Kubernetes 1.25+
- Helm 3.10+
Installing the Chart
helm install ferrogw ferro-labs/ai-gateway \
--version 1.2.0 \
--namespace ferrogw \
--create-namespace \
-f my-values.yaml
Uninstalling the Chart
helm uninstall ferrogw --namespace ferrogw
Configuration
See values.yaml for the full list of configurable parameters.
Key parameters
| Parameter | Description | Default |
|---|---|---|
replicaCount | Number of gateway pods | 2 |
image.repository | Container image repository | ghcr.io/ferro-labs/ai-gateway |
image.tag | Image tag (defaults to chart appVersion) | "" |
config.strategy.mode | Routing strategy | fallback |
secrets.adminApiKey | Secret for /admin endpoints | "" |
secrets.providers | Map of provider name → API key | {} |
ingress.enabled | Enable Ingress | false |
autoscaling.enabled | Enable HPA | false |
pdb.enabled | Enable PodDisruptionBudget | true |
Providing secrets securely
Instead of passing API keys via --set, use an external-secrets or sealed-secrets operator, or reference an existing Secret:
# values.yaml
secrets:
adminApiKey: "" # leave empty
providers: {} # leave empty — keys injected by external-secrets
Enabling Ingress with TLS
ingress:
enabled: true
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
hosts:
- host: gateway.example.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: ferrogw-tls
hosts:
- gateway.example.com
Enabling autoscaling
autoscaling:
enabled: true
minReplicas: 2
maxReplicas: 20
targetCPUUtilizationPercentage: 70
Full documentation
Deploy ai-gateway with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ai-gateway 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 chartai-gateway is pinned at v1.2.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