litellm-helm
by RichardoC
Call all LLM APIs using the OpenAI format
About this chart
Helm Chart for LiteLLM
[!IMPORTANT] This is community maintained, Please make an issue if you run into a bug We recommend using Docker or Kubernetes for production deployments
Prerequisites
- Kubernetes 1.21+
- Helm 3.8.0+
If db.deployStandalone is used:
- PV provisioner support in the underlying infrastructure
If db.useStackgresOperator is used (not yet implemented):
- The Stackgres Operator must already be installed in the Kubernetes Cluster. This chart will not install the operator if it is missing.
Parameters
LiteLLM Proxy Deployment Settings
| Name | Description | Value |
|---|---|---|
replicaCount | The number of LiteLLM Proxy pods to be deployed | 1 |
masterkeySecretName | The name of the Kubernetes Secret that contains the Master API Key for LiteLLM. If not specified, use the generated secret name. | N/A |
masterkeySecretKey | The key within the Kubernetes Secret that contains the Master API Key for LiteLLM. If not specified, use masterkey as the key. | N/A |
masterkey | The Master API Key for LiteLLM. If not specified, a random key in the sk-... format is generated on first install and reused on upgrades. | N/A |
environmentSecrets | An optional array of Secret object names. The keys and values in these secrets will be presented to the LiteLLM proxy pod as environment variables. See below for an example Secret object. | [] |
environmentConfigMaps | An optional array of ConfigMap object names. The keys and values in these configmaps will be presented to the LiteLLM proxy pod as environment variables. See below for an example Secret object. | [] |
image.repository | LiteLLM Proxy image repository | ghcr.io/berriai/litellm |
image.pullPolicy | LiteLLM Proxy image pull policy | IfNotPresent |
image.tag | Overrides the image tag whose default the latest version of LiteLLM at the time this chart was published. | "" |
imagePullSecrets | Registry credentials for the LiteLLM and initContainer images. | [] |
serviceAccount.create | Whether or not to create a Kubernetes Service Account for this deployment. The default is false because LiteLLM has no need to access the Kubernetes API. | false |
service.type | Kubernetes Service type (e.g. LoadBalancer, ClusterIP, etc.) | ClusterIP |
service.port | TCP port that the Kubernetes Service will listen on. Also the TCP port within the Pod that the proxy will listen on. | 4000 |
livenessProbe.* | Liveness probe settings for the LiteLLM container (path, periodSeconds, timeoutSeconds, thresholds, and initial delay). | See values.yaml |
readinessProbe.* | Readiness probe settings for the LiteLLM container (path, periodSeconds, timeoutSeconds, thresholds, and initial delay). | See values.yaml |
startupProbe.* | Startup probe settings for the LiteLLM container (path, periodSeconds, timeoutSeconds, thresholds, and initial delay). | See values.yaml |
resources.* | CPU/memory requests and limits for the LiteLLM container. Unset by default; production deployments should set 1 CPU and 4Gi of memory per worker. | {} |
service.loadBalancerClass | Optional LoadBalancer implementation class (only used when service.type is LoadBalancer) | "" |
ingress.labels | Additional labels for the Ingress resource | {} |
ingress.* | See values.yaml for example settings | N/A |
proxyConfigMap.create | When true, render a ConfigMap from .Values.proxy_config and mount it. | true |
proxyConfigMap.name | When create=false, name of the existing ConfigMap to mount. | "" |
proxyConfigMap.key | Key in the ConfigMap that contains the proxy config file. | "config.yaml" |
proxy_config.* | See values.yaml for default settings. Rendered into the ConfigMap’s config.yaml only when proxyConfigMap.create=true. See example_config_yaml for configuration examples. | N/A |
extraContainers[] | An array of additional containers to be deployed as sidecars alongside the LiteLLM Proxy. | |
pdb.enabled | Enable a PodDisruptionBudget for the LiteLLM proxy Deployment | false |
pdb.minAvailable | Minimum number/percentage of pods that must be available during voluntary disruptions (choose one of minAvailable/maxUnavailable) | null |
pdb.maxUnavailable | Maximum number/percentage of pods that can be unavailable during voluntary disruptions (choose one of minAvailable/maxUnavailable) | null |
pdb.annotations | Extra metadata annotations to add to the PDB | {} |
pdb.labels | Extra metadata labels to add to the PDB | {} |
| billingMetrics.enabled | Enable enterprise billable-request metering. Requires an enterprise license. | false |
| billingMetrics.endpoint | Collector that the billable-request counter is pushed to. | https://telemetry.litellm.ai |
| billingMetrics.tokenUrl | Cognito OAuth2 client-credentials token endpoint. | https://litellm-prod.auth.us-west-1.amazoncognito.com/oauth2/token |
| billingMetrics.secretName | Name of an existing Secret with client-id and client-secret keys. | litellm-billing-metrics |
| billingMetrics.exportIntervalMs | How often the counter is pushed, in milliseconds. The proxy defaults to 60000 when unset. | "" |
Example proxy_config ConfigMap from values (default):
proxyConfigMap:
create: true
key: "config.yaml"
proxy_config:
general_settings:
master_key: os.environ/PROXY_MASTER_KEY
model_list: []
The chart ships no models, so add them under proxy_config.model_list or from the Admin UI with store_model_in_db: true
proxy_config:
model_list:
- model_name: gpt-5.6
litellm_params:
model: openai/gpt-5.6
api_key: os.environ/OPENAI_API_KEY
Example using existing proxyConfigMap instead of creating it:
proxyConfigMap:
create: false
name: my-litellm-config
key: config.yaml
# proxy_config is ignored in this mode
Example environmentSecrets Secret
apiVersion: v1
kind: Secret
metadata:
name: litellm-envsecrets
data:
AZURE_OPENAI_API_KEY: TXlTZWN1cmVLM3k=
type: Opaque
Enterprise billable-request metering
Enterprise licenses meter billable requests by pushing a counter to LiteLLM's collector with Cognito bearer authentication. Create a Secret with client-id and client-secret keys, then enable the chart values:
kubectl create secret generic litellm-billing-metrics --from-literal=client-id=... --from-literal=client-secret=...
billingMetrics:
enabled: true
The endpoint and token URL must use HTTPS. The chart requires both URLs and the Secret name when billing metrics are enabled
Database Settings
| Name | Description | Value |
|---|---|---|
db.useExisting | Use an existing Postgres database. A Kubernetes S |
Deploy litellm-helm with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has litellm-helm 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 chartlitellm-helm is pinned at v1.110.4 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