LiteLLM deployment and infrastructure

Where and how to run a self-hosted LiteLLM gateway: Kubernetes, cloud Terraform modules, database and Redis sizing, restricted networks and managing configuration as code.

Deploying LiteLLM on Kubernetes with Helm

Installing LiteLLM on EKS, GKE or AKS with the official charts: the monolithic litellm-helm chart versus the componentized litellm chart, external PostgreSQL and Redis, the migrations job, ingress, secrets and replica counts for production.

Deploying LiteLLM on Google Cloud Run with Terraform

Running LiteLLM on Google Cloud with the GCP Terraform stack: Cloud Run services, Cloud SQL PostgreSQL with a read replica, Memorystore Redis with TLS, Secret Manager and a global HTTPS load balancer, and when GKE is the better fit.

Deploying LiteLLM on Azure Kubernetes Service

Why AKS with Helm is the supported Azure path for LiteLLM, and how to pair it with Azure Database for PostgreSQL flexible server, Azure Cache for Redis, Key Vault and Entra ID authentication to the database.

LiteLLM monolithic vs microservices deployment

Choosing between one LiteLLM image that serves traffic, management APIs and UI, and separate gateway, backend and UI services that scale independently, with the effect on autoscaling, upgrades and blast radius.

Sizing PostgreSQL for LiteLLM

Picking a PostgreSQL instance for LiteLLM by sustained requests per second: why spend writes drive sizing, storage per logged request, connection pool math per worker and replica, managed database connection limits, and when to add a read replica.

LiteLLM Redis requirements and sizing

What breaks across pods without Redis, and how big Redis needs to be: shared rate limits, budgets, cooldowns and cache, vCPU as the throughput limit, eviction risks for spend updates, persistence with the transaction buffer, and cluster mode.

LiteLLM with a PostgreSQL read replica

Sending LiteLLM's key lookups and spend queries to a reader endpoint such as Aurora's while writes stay on the primary: DATABASE_URL_READ_REPLICA, which operations route where, fallback to the writer, and IAM or Entra ID token auth for both.

Running LiteLLM in an air-gapped or egress-restricted network

Operating LiteLLM where it cannot reach the internet: the bundled model cost map instead of the GitHub fetch at startup, private image registries, offline Enterprise license checks, self-hosted model backends and what features need outbound access.

Managing LiteLLM keys, teams and models with Terraform

Treating gateway configuration as code with the LiteLLM Terraform provider: resources for models, teams, team members, keys, MCP servers, credentials and vector stores, and how this fits with store_model_in_db and Admin UI changes.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.