Skip to main content

Quick Start with Helm

LiteLLM provides official Helm charts for Kubernetes deployment.
1

Add Helm Repository

2

Install with Default Values

3

Verify Installation

4

Access the Service

Helm Chart Configuration

Basic Values

Create a values.yaml file:
values.yaml
Install with custom values:

Environment Variables from Secrets

Store API keys and sensitive data in Kubernetes Secrets, not in values.yaml.
Create secrets:
Reference in values.yaml:

Manual Kubernetes Deployment

For custom deployments without Helm:

Deployment YAML

litellm-deployment.yaml
Apply:

ConfigMap for Proxy Config

litellm-configmap.yaml
Apply:

Ingress Configuration

NGINX Ingress

litellm-ingress.yaml
Enable in Helm:

Autoscaling

Horizontal Pod Autoscaler (HPA)

litellm-hpa.yaml

KEDA Autoscaling

Use KEDA for advanced autoscaling based on custom metrics like request queue depth or Prometheus metrics.

Database Configuration

Using External PostgreSQL

For production, use a managed database service (AWS RDS, GCP Cloud SQL, Azure Database) for better reliability.
Create database secret:

Prisma Migrations

The Helm chart includes a migration job that runs before deployment:

High Availability Setup

Pod Disruption Budget

Topology Spread Constraints

Graceful Shutdown

Monitoring with Prometheus

ServiceMonitor

This creates a ServiceMonitor for the Prometheus Operator to scrape metrics from LiteLLM.

Redis for Caching

Security Best Practices

Network Policies

networkpolicy.yaml

Pod Security Standards

Troubleshooting

Pod Won’t Start

Database Connection Issues

Health Check Failures

Next Steps

High Availability

Multi-region HA deployment patterns

Monitoring

Set up Prometheus and Grafana dashboards

Security

Harden your Kubernetes deployment

Performance

Optimize for high throughput