Deploying LiteLLM on Azure Kubernetes Service

Why AKS with Helm is the supported Azure path for a self-hosted LiteLLM gateway, and how to pair it with managed PostgreSQL, Redis, Key Vault and Entra ID database authentication.

On this page

Deploying LiteLLM on Azure Kubernetes Service: when AKS is the right home for your gateway

A platform team that needs one governed gateway for approved model providers inside its own Azure subscriptions should start by confirming that AKS is the right host. Azure has no LiteLLM Terraform module, so the supported path is AKS with the official Helm charts. That shifts more of the build onto your team: you own the cluster, the ingress, the secrets wiring and the upgrade cadence, and you need to be comfortable operating Kubernetes before the gateway goes live. If your organization already runs AKS with monitoring, network policy and a secrets pattern, the gateway becomes one more workload on a known platform. If it does not, the Kubernetes work is the larger share of the effort, and a VM install may look simpler on day one but leaves you to build the same controls by hand.

The gateway is more than the proxy container. Virtual keys, per-key budgets and spend records need PostgreSQL, so plan for Azure Database for PostgreSQL flexible server as an external database from the start. Once more than one proxy instance runs, LiteLLM requires Redis 7.0 or newer for shared rate limits, router state and cache, which points to Azure Cache for Redis or another Redis service you can size and patch. Confirm the Redis tier and version you can get in your region against that minimum, and confirm that the cluster, database and cache share a virtual network so traffic stays private. Key Vault holds the LITELLM_MASTER_KEY, which must start with sk-, and the connection secrets your team chooses to keep there.

Choose AKS when your standards already center on Azure identity, networking and policy, when model traffic must stay in Azure regions you select, and when your team can run horizontal scaling and rolling upgrades on Kubernetes. Consider other options when your estate sits mainly on another cloud, when you need a single small instance with no scaling requirement, or when no one on the team owns cluster operations. Before committing, ask your Azure architect and LiteLLM provider contacts to confirm current Kubernetes version support on AKS, the Helm chart version you will pin, and whether Entra ID token authentication to PostgreSQL fits your identity design. Those answers determine the rest of the build.

Where requests, secrets and database identity flow in the AKS layout

The diagram starts with client traffic entering ingress inside the AKS cluster and reaching LiteLLM pods, which call approved model providers outside the cluster. Each pod reads and writes PostgreSQL using a Microsoft Entra ID token rather than a stored password, and shares state through Redis once more than one proxy instance runs. Secrets such as the master key come from Key Vault. Check that every edge that crosses a trust boundary has a named identity, a network path and a logging decision.

Request, secret and database identity paths across the AKS trust boundaries.

Which AKS and Azure service options fit which environment

The cluster layout sets how many LiteLLM pods you can run, how they recover from node failure and how upgrades reach them. A single node pool is simpler to operate and review, but it puts gateway pods, ingress and any supporting workloads on the same failure domain. Separate system and user node pools keep platform components from competing with gateway pods for capacity. LiteLLM recommends one Uvicorn worker per pod and horizontal scaling, so the design question is how many replicas you need and how they spread across nodes and zones.

  • Node pool separation: Decide whether gateway pods share a pool with other workloads or run in a dedicated pool with taints and tolerations.
  • Zone spread: Check whether your region offers availability zones and how pod topology spread constraints will distribute replicas.
  • Control plane tier: Confirm the AKS control plane option and upgrade channel your organization can support.
  • Version support: Match the cluster version to the Kubernetes release line your platform team can keep current, using the supported minor versions listed by the Kubernetes project.
  • Pod security: Apply the Pod Security Standards level your policy requires to the namespace running the gateway.

Confirm the node pool and zone options with the current Azure Kubernetes Service documentation and the LiteLLM production deployment guide before you fix replica counts.

Configuration options and when each fits

This table maps each main choice in an AKS deployment of LiteLLM to the situations where it fits and the trade-off it brings. Read it as a decision aid: start with the row for the choice you are unsure about, then confirm the details against your own Azure subscription and policies.

OptionWhen it fitsTrade-off
AKS cluster tierTeams that want a managed control plane and already run AKS for other workloadsAsk Azure which cluster tier and SLA apply to your region before committing to production sizing
Helm chart choiceTeams that want the official LiteLLM chart path, since Azure has no LiteLLM Terraform moduleChart components and values change between releases, so pin the chart version and review values on each upgrade
PostgreSQL authentication modeEntra ID token auth with AZURE_POSTGRESQL_AUTH=True when you want no static database password in the clusterToken refresh becomes a dependency to verify, and it must also cover any read replica
PostgreSQL password authenticationShort-lived evaluations or environments where Entra ID token setup is not yet approvedA stored password must be rotated and protected in Key Vault or a secret store
Redis connectionAzure Cache for Redis for any deployment running more than one proxy instance, since shared rate limits and router state need itConfirm the Redis version meets the 7.0 minimum and the tier and TLS settings your network rules require
Key Vault integrationPulling secrets such as LiteLLM_MasterKey and database settings from Key Vault into the clusterChoose between direct secret manager integration and syncing into Kubernetes Secrets, and confirm which one your RBAC model allows
Ingress and private networkingPrivate clusters with internal load balancers when callers stay inside your networkPrivate endpoints add DNS and routing work, and public ingress needs its own access controls and TLS plan
LITELLM_MASTER_KEY storageKey Vault, delivered to pods through a secret store mechanism, with the value starting with sk-Kubernetes Secrets are unencrypted in etcd by default, so enable encryption at rest and restrict list and watch access

Setup sequence for LiteLLM on AKS with managed Azure data services

This sequence takes an approved Azure subscription to a running LiteLLM gateway on AKS, with managed PostgreSQL, Redis and Key Vault, and a set of checks that confirm each layer works before the next one is built.

  1. Confirm subscription, region and approval boundaries

    Your cloud or platform owner confirms the Azure subscription, region and resource group where the gateway may run, and records which network paths, identities and data stores are approved. Confirm the region supports every service you plan to use, including AKS, PostgreSQL flexible server and Azure Cache for Redis, and that your policy allows the tiers you need. Done when the approved subscription, region and resource names are written down and the security team has signed off on the design boundary.

  2. Provision the AKS cluster within the supported version range

    The platform team creates the AKS cluster in the approved region with a Kubernetes version inside the range the Kubernetes project still maintains, and enables Entra ID integration, workload identity and a dedicated node pool for the gateway. Check the current supported minor versions on the Kubernetes releases page before choosing one, and plan the next upgrade window from the start. Done when kubectl reports healthy nodes, the server version matches your chosen supported minor, and a test pod can schedule.

  3. Create PostgreSQL flexible server with Entra ID authentication

    The data team provisions Azure Database for PostgreSQL flexible server in the same region and network design as the cluster, with private connectivity to the AKS subnet and a database dedicated to LiteLLM. Enable Microsoft Entra ID authentication, add the gateway's managed identity as a database role, and remove or restrict password access for that role. Done when a test connection from a pod using the managed identity token succeeds and a password login for the gateway role is refused.

  4. Create Azure Cache for Redis for shared state

    Provision Azure Cache for Redis in the same region, reachable only from the AKS subnet, with TLS required and access keys or Entra-based access stored outside the Helm values. LiteLLM needs Redis 7.0 or newer once more than one proxy instance runs, because rate limits, router state and cache must be shared across pods, so confirm the cache version and tier against that minimum. Done when a client pod can authenticate over TLS and set and read a test key, and the cache version is recorded.

  5. Configure Key Vault and workload identity

    Create an Azure Key Vault for the LITELLM_MASTER_KEY, provider credentials and any Redis secret, grant the gateway's workload identity read access to only those secrets, and link the identity to a Kubernetes service account through the AKS workload identity federation. Keep the master key value starting with sk- and out of Helm values and source control. Done when a test pod using the service account retrieves each secret and a pod in another namespace is denied.

  6. Install LiteLLM with Helm

    The platform engineer installs LiteLLM on AKS with the official Helm chart, pointing it at the external PostgreSQL and Redis endpoints, the Key Vault-backed secrets and a replica count greater than one, with one Uvicorn worker per pod as LiteLLM recommends for Kubernetes. Pin the chart and image versions in the values file and set resource requests that reflect the suggested 1 vCPU and 4 GiB per worker baseline. Done when all pods reach Ready and the release values are stored in version control.

  7. Run the database migration and set AZURE_POSTGRESQL_AUTH

    Run the migrations job once against the empty LiteLLM database, then set AZURE_POSTGRESQL_AUTH to True so the proxy authenticates with the Entra ID token and refreshes it before expiry for the writer and any read replica. Confirm the migration job completed without errors and that the proxy logs show a successful token-based connection rather than a password login. Done when the schema exists and the proxy reports a healthy database connection.

  8. Verify health, key creation and cross-pod rate limits

    Check the liveness and readiness endpoints, create a test virtual key scoped to one model, and send requests through two different pods to confirm the same key is recognized and that the shared rate limit counts both pods together, which depends on Redis being reachable from each. Record the test results, the key's budget settings and the Redis connection state as your acceptance evidence before any team receives access. Done when health checks pass, the key works on every pod and the limit is enforced across pods.

Security controls to plan before the gateway takes production traffic

The gateway holds provider credentials, the master key and spend data, so its security depends on the cluster and the data stores around it as much as on LiteLLM itself. The cards below cover the controls to decide and verify before production traffic arrives, in the order most teams hit them during the build.

Encrypt Kubernetes Secrets at rest

Kubernetes stores Secrets unencrypted in etcd by default, and LiteLLM's provider keys and database credentials usually live there. Configure encryption at rest for etcd, restrict list and watch permissions on Secrets with least-privilege RBAC, and confirm that no other service account in the cluster can read the LiteLLM namespace. If your policy requires keys to stay out of etcd entirely, plan the Secrets Store CSI Driver so values are mounted from Azure Key Vault at runtime.

Secrets good practices

Keep the master key out of manifests

LITELLM_MASTER_KEY must start with sk- and controls administrative access to the proxy, so it should never appear in Helm values files, Git repositories or plain container environment definitions. Store it in Key Vault, sync it into the cluster through the CSI driver, and document who can rotate it. Test rotation in a non-production namespace before the first production release so the runbook is proven.

Apply Pod Security Standards to the namespace

Set the Pod Security Standards level for the LiteLLM namespace to enforce restricted settings for pods, such as blocking privilege escalation, requiring a non-root user and dropping unneeded Linux capabilities. Confirm that the official chart and any sidecars or migration jobs run under those constraints. Record any exception as a named, reviewed decision rather than a namespace-wide relaxation.

Pod Security Standards

Use Entra ID for database identity

With AZURE_POSTGRESQL_AUTH set to True, LiteLLM authenticates to Azure Database for PostgreSQL flexible server with Microsoft Entra ID and refreshes tokens before they expire for the writer and any read replica. Confirm that the workload identity has only the database role it needs, that Microsoft Entra authentication is enabled on the server, and that a token expiry during a long load test does not cause a connection outage.

Read replica docs

Keep PostgreSQL and Redis on private networks

Place Azure Database for PostgreSQL flexible server and Azure Cache for Redis behind private endpoints or private access inside the same virtual network as the AKS node pools, and remove public network access where your policy requires it. Confirm that LiteLLM's Redis connection uses TLS and that network security rules allow only the gateway subnet to reach the database and cache ports.

Assess the cluster against CIS controls

Use the CIS Kubernetes Benchmark as the reference for assessing the AKS cluster's control plane configuration, node settings, RBAC and network policy, and treat the results as a checklist for your own review. Ask your assessor to record which benchmark items the AKS version and managed settings satisfy, which need configuration, and which you accept with a documented reason. Benchmark results support your review but do not certify the environment.

CIS Kubernetes Benchmark

Operating the cluster: upgrades, etcd backups and version skew

How often does Kubernetes release a new minor version?

Kubernetes ships roughly three minor releases a year, on a cycle of about 14 weeks. That pace means a cluster falls behind quickly if nobody plans upgrades. Plan a recurring review of the release calendar so each upgrade is scheduled rather than forced by an end-of-life date. Check the Kubernetes release cycle page for the current schedule, and confirm which versions Azure Kubernetes Service offers in your region before you commit to a target.

Which Kubernetes versions are supported and when do they end?

As of September 2026, the Kubernetes project maintains the three most recent minor releases: 1.37, which reaches end of life on October 28, 2027, 1.36, which ends on June 28, 2027, and 1.35, which ends on February 28, 2027. Upstream support is not the same as your AKS support window, so confirm the Azure support dates for each version in your subscription. Check the Kubernetes releases page for the latest list before any upgrade decision.

How long does Kubernetes patch support last for each minor version?

Kubernetes 1.19 and newer receive about one year of patch support, which is roughly 14 months in total when the pre-release period is included. Patch releases fix security and bug issues within a minor line, so you should apply them on a regular cadence even when you are not changing minor versions. Track patch availability on the Kubernetes releases page, and confirm how AKS applies patches and whether you control the timing in your cluster settings.

In what order should Kubernetes components be upgraded?

Upgrade the kube-apiserver first, one minor version at a time, then the kube-controller-manager, kube-scheduler and kubelets. The version skew policy allows kubelets to be up to three minor versions older than the kube-apiserver, but that window is a limit, not a target. Keep node pools close to the control plane version and move through each minor release in sequence. The Kubernetes version skew policy documents the exact rules. On AKS, confirm which steps Azure performs and which node pool upgrades you schedule.

How do I back up etcd, and who owns it on AKS?

Kubernetes documentation recommends a backup plan for etcd and uses etcdctl snapshot save to create a snapshot, and etcdutl to restore from one. On a self-managed cluster you run these commands yourself on an etcd member. AKS manages the control plane, so the etcd service is not normally reachable from your nodes. Before you rely on any backup procedure, confirm with Azure which etcd backup and restore responsibilities remain with you, what Azure retains, and how a cluster-level restore would be performed. Document the answer in your runbook.

Does a Kubernetes cluster need an odd number of etcd members?

Yes. Kubernetes documentation says etcd should run with an odd number of members so that a majority can still form after a failure, and it recommends a five-member cluster in production. This matters most for self-managed clusters, where you choose the topology. In the stacked control plane model, etcd runs on the control plane nodes, and the kubeadm high availability guide calls for at least three control plane nodes. On AKS, confirm with Azure how the managed control plane is sized and replicated before you plan capacity.

Which LiteLLM release line should the gateway stay on?

LiteLLM maintains support for the four most recent stable minor versions for both open source and Enterprise deployments. Stay within that window so you receive fixes and can reach a supported version without a large jump. Watch the LiteLLM releases page for new minor versions, and schedule upgrades so that each one is tested in a non-production cluster first. Database migrations and the Helm chart version should be reviewed together with the image tag.

How should the LiteLLM deployment scale on AKS?

LiteLLM recommends one Uvicorn worker per pod on Kubernetes and scaling horizontally by adding pods. Horizontal Pod Autoscaling can add or remove replicas based on a metric such as CPU use or request load, but the metric must reflect the gateway's real bottleneck. Set resource requests and limits for each pod, since the production guide suggests about 1 vCPU and 4 GiB of memory per worker as a starting point. Shared rate limits, router state and cache need Redis 7.0 or newer once more than one pod runs, so the autoscaler should not scale the gateway ahead of its shared dependencies. Load test your chosen thresholds before relying on them.

Limits to confirm in your Azure environment

The AKS path has several limits that depend on your tenant, region and the LiteLLM release you choose. Confirm each one against your own environment and written quotes before committing to a design, because a wrong assumption here usually surfaces as a failed migration job or throttled requests after go-live.

Chart version against your image

Pin the LiteLLM Helm chart version and the container image tag together, then check that the chart's values and migrations job match the image you plan to run. Releases are supported on a rolling basis (the four most recent stable minor versions), so confirm your target release on the GitHub releases page and plan the next upgrade before go-live. Record the pair in your configuration repository so an upgrade is a reviewed change, not a guess.

Latest listed release
v1.105.1
LiteLLM releases

Database and Redis tier limits

Ask Azure for the connection limit of the PostgreSQL flexible server tier you select, and for the maximum client connections of the Azure Cache for Redis tier. Multiply the number of pods by the worker count and the pool size per worker to see whether connections fit. LiteLLM's production guide requires Redis 7.0 or newer once more than one proxy instance runs, so confirm the engine version your Azure Redis tier offers in your region.

Enterprise features you actually need

Decide whether you need SSO for more than five admin UI users, Key Vault as a secret manager integration, audit logs or SCIM provisioning. Free SSO covers up to five users from v1.76.0, and the Key Vault integration sits in the Enterprise feature set. Get the license terms and price in writing from LiteLLM before you design the identity and secrets flow around them.

LiteLLM Enterprise docs

Private cluster and provider egress

If the AKS cluster is private or sits behind a restricted egress path, confirm that the gateway can reach every model provider endpoint, the Entra ID token endpoint for database authentication and any external guardrail or logging service. Test these paths from inside the node pool, not from your workstation. Document each outbound destination so the network team can approve it once.

Regional availability of managed services

Check that AKS, Azure Database for PostgreSQL flexible server, Azure Cache for Redis and Key Vault are all available in your target region, with the SKUs and zone redundancy you need. Some tiers and zone options vary by region, so verify availability with Azure and confirm your data residency requirements before choosing a location for the stateful services.

Questions teams ask before deploying LiteLLM on AKS

What drives the cost of deploying LiteLLM on AKS?

The cost comes from four components: the AKS cluster and its node pools, the managed PostgreSQL and Redis services, the LiteLLM Enterprise license if you need it, and the engineering hours for identity and networking. The cluster and managed services are recurring cloud charges billed to your Azure subscription, so they depend on the node count and service tiers you choose. LiteLLM's production guide suggests 1 vCPU and 4 GiB memory per worker as a starting point, and it recommends one Uvicorn worker per pod with horizontal scaling, so pod count drives node sizing. Redis 7.0 or newer is required once more than one proxy instance runs. The one-time costs are design, Entra ID wiring, Key Vault setup and testing. Ask any partner for a quote that lists each Azure resource, its size, and whether the line is one-time or recurring.

How long does a LiteLLM deployment on AKS take?

Duration depends on how many of the connected services are new to your organization and how much identity and network work sits in front of them. A basic lab-style install of the proxy against existing services is much shorter than a production build with Entra ID authentication to PostgreSQL, Key Vault secret loading, private networking and a verified upgrade path. No researched timeline applies to your environment, so ask for a written schedule that separates the platform build, identity integration, testing and handover. Most of the variance comes from access approvals on your side, not from the Helm install itself.

What does the client need to provide before work starts?

Before work starts, you should prepare four things:

  • An Azure subscription with rights to create AKS, Azure Database for PostgreSQL flexible server, Azure Cache for Redis and Key Vault, plus permission to assign roles.
  • An Entra ID group for administrators and any group used for application access.
  • The list of approved model providers and the credentials or managed identities each one needs.
  • Network rules: the virtual network and subnets, private endpoint policy, egress allowances to model providers, and any proxy or DNS requirements.

Confirm these with your cloud and security teams early, because approvals often set the schedule.

Can our in-house platform team deploy LiteLLM on AKS without a partner?

Yes, a platform team with Kubernetes, Helm and Azure experience can deploy LiteLLM on AKS. The work is manageable when the team already runs AKS and has a secrets practice. The parts that usually take the most experience are Entra ID authentication to PostgreSQL, least-privilege RBAC for Kubernetes Secrets, and keeping the gateway on a supported release line. Kubernetes stores Secrets unencrypted in etcd by default, so encryption at rest or an external store through the Secrets Store CSI Driver should be part of the design. Assess your team's experience against those tasks, then decide whether to build internally, buy a fixed-scope engagement, or split the work.

Does LiteLLM Enterprise support include SLAs for an AKS deployment?

LiteLLM Enterprise support includes a dedicated channel with the engineering team, and optional 24/7 SLAs are available. According to the LiteLLM enterprise documentation, the optional SLAs specify a 1 hour response for critical issues and 72 hours for security patches. These terms come from LiteLLM, not from DeployOpen, and they apply only if you hold an Enterprise license with that support tier. Confirm the exact terms, the coverage hours and whether they cover your AKS layer, the database and Redis, in the written agreement. DeployOpen's own support and retainer scope is defined separately in a written statement of work.

Do we need an Enterprise license to deploy LiteLLM on AKS?

No, the open-source LiteLLM proxy can run on AKS. Content under the enterprise directory uses a separate license, and everything else is under the MIT license. The Enterprise license matters when you need features such as SSO beyond the free limit, audit logs, organization and team RBAC, or secret manager integrations. From v1.76.0, SSO is free for up to 5 users, and an Enterprise license is needed beyond that. Decide which features your controls require before you size the license, and confirm the current terms with LiteLLM.

Which Kubernetes version should we target on AKS for LiteLLM?

Target a Kubernetes minor version that is still in support on the date you deploy. The Kubernetes project maintains the three most recent minor releases, and as of September 2026 the listed versions were 1.37, 1.36 and 1.35, with end-of-life dates from February 2027 to October 2027. Choose a version with enough support runway for your planned upgrade cadence. Confirm the AKS-supported versions in your region at build time, because Azure's supported list can differ from upstream timing.

How DeployOpen scopes and delivers a LiteLLM deployment on AKS

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside the client's own Azure subscriptions. For a LiteLLM gateway on AKS, we start from a written scope that names the cluster, data stores, identity and governance settings, then build and hand over the environment so your team can operate it.

How we scope

  • Agree in writing which AKS cluster, node pools and Azure subscription the gateway will run in
  • Confirm the PostgreSQL flexible server, Azure Cache for Redis and Key Vault design before build starts
  • Define which Entra ID sign-in, admin UI SSO and virtual key governance settings are in scope
  • Engagements are fixed-scope, so deliverables and timelines are set out in the agreement before work begins

How we build

  • Deploy the LiteLLM Helm chart on AKS with one Uvicorn worker per pod and horizontal scaling
  • Configure PostgreSQL authentication through Entra ID with AZURE_POSTGRESQL_AUTH and tested token refresh
  • Place LITELLM_MASTER_KEY and other secrets in Key Vault, with access limited to the workload identity
  • Test the deployed gateway against your security requirements, including network exposure and rate limit behavior

How we hand over

  • Provide written documentation of the cluster layout, Helm values, identity bindings and secret locations
  • Deliver runbooks for upgrades, database migrations and Kubernetes version changes on your schedule
  • Walk your platform, security and compliance teams through the configuration and the evidence they can review
  • Transfer administrative access so your team holds the keys, accounts and configuration from day one

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after the handover
  • Track LiteLLM release lines and Kubernetes version support so upgrades are planned before support ends
  • Retest the gateway after significant configuration, identity or cluster changes
  • Confirm with us during scoping which support hours and response terms apply to your engagement

Sources and further reading

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.