Configuration
With Helm, configure Valetkey through Helm values. Underneath, the binary reads these environment variables:
| Variable | Default | Description |
|---|---|---|
OPERATOR_NAMESPACE | valetkey-system | Namespace for providers, tenants and provider-key Secrets (set from the pod's namespace) |
PROXY_URL | http://valetkey.valetkey-system.svc.cluster.local:8000 | URL written into key Secrets and shown in the dashboard's examples |
PROXY_PORT | 8000 | Tenant-facing port |
METRICS_PORT | 8081 | Health checks and Prometheus metrics |
ADMIN_ADDR | 127.0.0.1:8082 | Dashboard and admin API. Loopback by default, so only kubectl port-forward reaches it |
LEASE_NAME | valetkey | Lease used to pick the replica that mints keys and writes status |
PRICING_REFRESH | 6h | How often live prices are fetched (Go duration), or off |
PROMETHEUS_URL | none | Prometheus to read usage history from (set by the chart's prometheus.url) |
TRUST_PROXY | none | Number of reverse proxies in front of Valetkey (e.g. 1 behind one ingress). The client IP for allow lists is then read from X-Forwarded-For |
Ports
| Port | Exposed by | Paths |
|---|---|---|
| 8000 | Service valetkey | /v1/chat/completions, /v1/messages, /v1/embeddings, /v1/responses, /v1/models |
| 8081 | Service valetkey | /healthz, /readyz, /metrics |
| 8082 | nothing (pod loopback) | / (dashboard), /api/v1/* |
Resources
The chart requests 20m CPU and 32 Mi memory with a 256 Mi limit.
RBAC
The service account can:
- read and write
proxykeysin every namespace, and their status; - create, update and delete Secrets in every namespace (key Secrets have generated names, so they can't be narrowed with
resourceNames); - list namespaces (for the dashboard's tenant picker);
- read and write
providersandtenantsand their status, and Secrets, in its own namespace.