LiteLLM health checks and Kubernetes probes

How to wire LiteLLM liveness and readiness endpoints into Kubernetes and load balancers, keep diagnostic output away from unauthenticated callers, and confirm each configured model can serve.

On this page

Why LiteLLM health checks need separate liveness and readiness signals

A gateway pod can be running and still be unable to serve a single request. The common failure is a pod whose process is up but whose configured PostgreSQL database is unreachable, so virtual key checks and spend tracking fail, while a load balancer keeps sending it traffic. The reverse happens too: a probe that depends on the database can pull healthy pods out of rotation during a database blip and reduce capacity for everyone. Platform teams need to decide which signal answers which question before they write any probe configuration.

LiteLLM separates these questions. GET /health/liveliness (also served at /health/liveness) only confirms that the process is up. It does not tell you whether the gateway can authenticate callers or write spend. GET /health/readiness is the signal that matters for traffic: it returns 503 when a configured database is unreachable, which lets the orchestrator or load balancer take the pod out of rotation until the dependency recovers. Use liveness to decide whether a process should be restarted, and readiness to decide whether it should receive requests. A restart does not fix a database outage, so a liveness check that depends on the database would cause restart loops during a database incident.

Teams need both signals once a gateway has any stateful dependency, which for a production deployment means PostgreSQL for virtual keys, budgets and spend, and Redis once more than one proxy instance runs. Confirm with your own configuration which dependencies the readiness check actually covers, because a deployment without a configured database will not exercise the same path. Also confirm that a readiness failure does not hide the gateway's ability to reach individual model providers, since provider health is a separate question covered later in this page.

How probes, load balancers and the database reach a LiteLLM pod

The kubelet and an external load balancer call the liveness and readiness endpoints on each LiteLLM pod without credentials. Liveness only confirms the process is running. Readiness checks the configured PostgreSQL database and returns 503 when it is unreachable, which removes the pod from rotation. The authenticated details endpoint sits behind a separate trust boundary, so full diagnostics stay off the public payload unless you deliberately enable them.

Probe callers reach public health endpoints, while diagnostics require authentication.

Which LiteLLM health endpoint fits each probe and caller

This table compares the LiteLLM liveness endpoint, the readiness endpoint, the default readiness payload, the public diagnostics setting and the authenticated details endpoint. Read each row as a question: what does this endpoint check, who should call it, and when does it fit. The main takeaway is that probes should use the narrow endpoints, while full diagnostics stay behind authentication.

Endpoint or settingWhat it checksTypical caller and fit
GET /health/liveliness (alias /health/liveness)Only that the LiteLLM process is upKubernetes liveness probe. Use it to decide whether a container should restart, not whether it can serve traffic.
GET /health/readinessReturns 503 when a configured database is unreachable, so the pod leaves rotationKubernetes readiness probe or load balancer health check. Use it to control whether traffic reaches the pod.
Default readiness payloadA low-detail response from the readiness endpoint with limited information about the deploymentUnauthenticated probes and monitors. Confirm the exact fields in your own version before relying on them for alerting.
allow_public_health_readiness_detailsEnables full diagnostics on the readiness endpoint for unauthenticated callersOnly for short-lived troubleshooting in a restricted network. Leaving it on exposes internal detail to anyone who can reach the port.
GET /health/readiness/detailsFull diagnostics, available only to authenticated callersOperators and monitoring systems that hold credentials. Use it to check configured models and dependencies during incidents.

How to wire LiteLLM health checks into Kubernetes and load balancers

This sequence connects LiteLLM's liveness and readiness endpoints to Kubernetes probes and a load balancer health check, and proves that a pod losing its database leaves rotation without being restarted for the same reason.

  1. Confirm the database and endpoint paths

    The platform engineer confirms that the deployed LiteLLM version exposes the liveness and readiness paths they plan to use, and that the proxy configuration names the PostgreSQL database that readiness depends on. Check the endpoints directly from a workstation inside the cluster network by calling GET /health/liveliness and GET /health/readiness and recording the status codes. The step is done when both paths return expected responses on a healthy pod and the team has written down which configured database the readiness check will test. Compare the paths against the health check documentation for the exact version in use, since the release line you run determines what is available.

  2. Point the liveness probe at the liveness endpoint

    The cluster team sets the Kubernetes liveness probe on the LiteLLM container to an HTTP GET against the liveness path, using the port the proxy listens on. Liveness only tells the kubelet that the process is up, so it should not depend on the database or on upstream model providers. Keep the probe's failure behavior conservative, because a restart does not fix an unreachable database and repeated restarts can add load during an outage. Set the probe timing values against your own environment and confirm them with a load test before production. The step is done when the probe appears in the pod specification and the pod shows a passing liveness status in its events.

  3. Point the readiness probe at the readiness endpoint

    The cluster team sets the readiness probe to the readiness path, which returns 503 when a configured database is unreachable, so the Kubernetes endpoints controller removes the pod from Service rotation. Readiness is the probe that should carry database dependency, which keeps the pod running while it waits for the database to recover. Leave the default readiness response in place, because the default payload is low detail and does not expose internal diagnostics to unauthenticated callers. The step is done when the readiness condition shows True on healthy pods and the Service lists those pods as ready endpoints.

  4. Keep diagnostic output off unauthenticated paths

    The security or platform owner reviews whether allow_public_health_readiness_details is enabled in the proxy configuration. Full diagnostics are exposed when that setting is on, and any caller that can reach the port could read them. If operators need the detail, use the authenticated /health/readiness/details endpoint from inside the cluster with an admin credential kept in the secret manager, not in probe definitions. The step is done when a request to the public readiness path from outside the cluster returns only the low-detail payload and the detailed endpoint rejects requests without valid credentials.

  5. Set the load balancer health check path

    The network team configures the load balancer target group or ingress health check to use the same readiness path that the Kubernetes readiness probe uses, so traffic stops reaching a pod that cannot serve requests. Match the protocol, port and expected success codes to the proxy, and confirm that the load balancer can reach the health path through any network policy or security group that governs the cluster. If the load balancer sits in front of a Kubernetes Service instead of pod IPs, verify which layer performs the check so the team knows which probe removes a target. The step is done when every registered target reports healthy in the load balancer console and the console marks a target unhealthy when the health path is blocked.

  6. Verify that an unreachable database removes the pod

    The operations engineer tests the behavior in a non-production environment that mirrors the production configuration. Block network access from one proxy pod to the PostgreSQL database, using a network policy or a firewall rule that the team controls, and watch the readiness status, the Service endpoints and the load balancer target state. The expected result is that the affected pod fails readiness and leaves rotation while the liveness probe keeps passing and the container is not restarted. Restore the connection and confirm that the pod returns to rotation. The step is done when the team has recorded both transitions with timestamps and the pod's restart count did not change during the test.

  7. Document the probe settings and review them after upgrades

    The platform team writes the final probe paths, ports, timing values, load balancer settings and the test results into the configuration repository, so the setup is reproducible and reviewable. Assign an owner to recheck the endpoint paths and default payload behavior whenever LiteLLM is upgraded, since health endpoint details can change between releases. Add the readiness and liveness checks to the monitoring stack so that a pod leaving rotation raises an alert. The step is done when the configuration is merged, the runbook names the owner, and the alert fires in a test run when a pod is removed from rotation.

Checking whether each configured model can serve, beyond LiteLLM health checks

Gateway health checks answer a narrow question: is the LiteLLM process up, and can it reach its configured database? They do not tell you whether every model route in the configuration can return a completion. A pod can pass readiness while one Azure deployment has an expired key, one Bedrock region is throttling, or a self-hosted model endpoint is down. Treat per-model serving as a separate control with its own owner, and plan for it before the first production incident forces the question. Use the gateway's readiness results for pod rotation, and use a separate check to decide which routes are actually usable.

Testing each model deployment means sending a real request to it, which has costs. Every scheduled probe that calls a provider is billed like normal traffic, may count against provider rate limits and quotas, and can trip alerts on the provider side if the probe pattern looks unusual. Decide the probe frequency, the smallest prompt that proves the route works, and whether probes use a dedicated service key with its own budget so they do not consume a team's allowance. For private models, the probe also consumes your own compute, so agree the schedule with whoever runs that capacity. Ask your provider and your platform team what each probe costs and how it is counted against limits.

Before you build a per-model check, confirm in your deployed LiteLLM version which endpoint or mechanism reports per-model status, whether it calls the upstream provider or only reads configuration, and whether it is exposed to unauthenticated callers. The health checks documentation at LiteLLM docs: Health checks is the starting point, but the exact behavior and access rules can differ between releases, so test the endpoint against your own configuration. If the check only validates configuration, it will not catch revoked credentials or unavailable upstreams, and you will need an active probe on a schedule you control.

Keeping probe output safe for unauthenticated callers

Kubernetes probes and load balancer checks are reachable by callers that have no LiteLLM credentials, so the gateway's health output must be treated as a potential information source. The cards below cover the places where configuration, route names, hostnames or diagnostics can leak, and the controls that keep probe traffic inside the network that needs it.

Default readiness payload detail

The default readiness response is intentionally low-detail, but it still tells an observer that the gateway is up and which checks passed. Before exposing any readiness path beyond the cluster, confirm with a test request what an unauthenticated caller can read from the response body. Treat any field that hints at configured model groups, routes or dependencies as information to limit at the network layer, not as harmless status.

LiteLLM health docs

Public diagnostics on open listeners

The setting allow_public_health_readiness_details turns full diagnostics on for unauthenticated readiness calls. On an internet-facing listener, that switch can expose database state, model health and configuration clues to anyone who finds the path. Keep it off on any listener reachable outside the cluster, and confirm the setting in the deployed configuration rather than in the Helm values alone.

Health check settings

Hostnames in error output

Error messages returned during failed health or model checks can include provider endpoints, database hosts or internal service names. Those strings help an attacker map the environment and identify which upstream services to target. Send a deliberately failing probe from outside the trusted network, capture the response, and confirm that it contains only a status and a generic reason. Pass detailed errors to logs that only the platform team can read.

Restricting the authenticated details endpoint

The authenticated /health/readiness/details endpoint returns full diagnostics, so it needs the same care as an admin API. Limit callers to the platform team's network or a dedicated monitoring identity, and rotate any key used for it on the same schedule as other master credentials. Ask whether your monitoring tool stores that key in plain text, since a leaked monitoring credential gives the same view as a platform engineer.

Load balancer rules for health paths

Load balancers and ingress rules often forward every path on a listener, which can publish health routes to clients that were never meant to reach them. Route only the liveness and readiness paths your probes need, on a separate internal listener where possible, and deny them on the public host. Review ingress and load balancer rules after each change, because a broad wildcard rule can silently reopen a path that was previously restricted.

How probe wiring differs across Kubernetes and load balancer deployments

In a Kubernetes deployment, the kubelet calls the liveness and readiness probes on each pod directly, while the Service and ingress controller decide which pods receive user traffic. Liveness usually points at /health/liveliness, which only confirms the process is running, so a database outage should not trigger restarts. Readiness points at /health/readiness, which returns 503 when a configured database is unreachable, removing the pod from Service endpoints. During a database outage, pods stay running but stop receiving traffic, so requests fail at the ingress with no ready backend rather than reaching a gateway that cannot write spend or key data.

  • Probe targets: Liveness on the liveness path, readiness on the readiness path, with timeouts and failure thresholds set for your startup time.
  • Ingress behavior: Confirm whether your ingress controller routes only to ready endpoints and how quickly it reacts to endpoint removal.
  • Health path exposure: Confirm the ingress does not publish health paths to the internet unless you intend to.
  • Restart storms: Keep database failures out of liveness so a shared outage does not restart every pod at once.
  • Diagnostics access: Authenticated detail endpoints need a route for operators, which the ingress must allow.

Check that your ingress and network policies match what the probes rely on, and test by stopping the database in a non-production cluster.

What to confirm before relying on LiteLLM probes in production

The LiteLLM health endpoints are simple by design, so most production gaps come from assumptions about what they cover. The cards below list what to verify in your own cluster and load balancer before a probe result is trusted to pull traffic or page someone.

Endpoint paths and payload fields

Confirm the exact liveness and readiness paths your LiteLLM version exposes, including whether the /health/liveliness alias and the /health/readiness route behave as the documentation describes in your release. Check the payload fields returned to unauthenticated callers, since the default readiness output is intentionally low-detail. Test each path against a staging proxy and record the status codes for healthy and database-down states.

LiteLLM health docs

Dependencies covered by readiness

Determine which dependencies readiness actually checks in your deployment. The documented behavior centers on a configured database, so confirm whether a Redis outage, which affects shared rate limits and router state, removes pods from rotation or only degrades behavior. Where readiness does not cover a dependency, decide whether a separate check or alert is needed and who owns it.

Probe timing around startup and migrations

Confirm how long your proxy takes to start, including any database migration run at boot. Set the initial delay and failure threshold so that a slow migration does not trigger restarts, and so a pod stuck waiting on the database is removed from rotation rather than repeatedly killed. Rehearse a rolling upgrade in staging and watch for pods restarting while schema changes are in progress.

Load balancer health checks

Compare the health check settings on your external or internal load balancer with the Kubernetes probes. Confirm the path, expected status codes, interval, timeout and unhealthy threshold, because a load balancer that checks a different endpoint can keep sending traffic to a pod Kubernetes has already removed. Confirm whether the load balancer reaches the pod directly or through a service, and test both paths during a simulated database outage.

Per-model serving checks

Confirm that a healthy gateway does not mean every configured model can serve. Gateway probes do not confirm that each provider credential, route and deployment is working. Decide whether a separate scheduled check sends a small request to each model group, who receives its alert, and how a failing model is distinguished from a provider outage before a Kubernetes restart is considered.

What do LiteLLM health checks and probes cost to set up, and what does the work need?

How much effort does wiring LiteLLM probes into Kubernetes take?

The effort depends less on the probe YAML than on how many decisions sit around it. Wiring the liveness and readiness endpoints into a deployment is a small change, but the work expands when you must confirm which checks reflect real serving ability, how the pod behaves when the database is unreachable, and how the load balancer treats a pod that leaves rotation. No duration is supplied for this work, so ask any team, internal or external, to break its estimate into those decisions and to show the test cases it plans to run.

  • Probe configuration and timing for each deployment
  • Behavior during database or Redis trouble
  • Per-model serving checks and their cost to the provider budget
Can an internal platform team set up LiteLLM probes on its own?

Yes, a platform team with Kubernetes and LiteLLM experience can usually wire the basic endpoints itself, because the configuration is documented and the endpoints are simple. The harder parts are judgment calls: keeping detailed readiness output away from unauthenticated callers, choosing whether a model health check should drive traffic decisions, and testing failure modes without disturbing production. If nobody on the team has run a gateway through a database outage in a test environment, an outside review of the design is a reasonable step, and DeployOpen scopes that work in writing before it starts.

What does the work need from our team before it starts?

Plan to give the implementer access and information before any configuration begins. The inputs usually include:

  • Cluster access with rights to view and edit the LiteLLM deployment, services and any ingress or load balancer objects
  • Ingress and load balancer details, including health check paths, ports and whether the balancer can reach pod addresses
  • Database and Redis connection details and a list of which components the readiness check depends on
  • A written list of configured models and the providers behind them
  • A test window in a non-production environment, and an agreed window for production rollout

Ask for these in the written scope so that gaps show up before the schedule is set.

What recurs after the probes go live?

Setup is mostly one-time, but several items recur. Each time the LiteLLM version changes, confirm that the health endpoints, their response format and their authentication behavior still match the probe configuration. Each new model or provider added to the gateway may need its own serving check and an updated alert threshold. Probe settings also need review when the cluster, the load balancer or the database changes. Ongoing monitoring, upgrades and continuous testing are available as retainers, and the cost of a retainer follows from the written scope rather than a fixed list price.

How does probe design change with replicas and autoscaling?

With more replicas, a readiness check that depends on a shared database can remove many pods at once during a database fault, which may leave no capacity to serve traffic. Liveness checks that depend on external services can cause restart loops when a provider slows down, so liveness should only confirm the process is running. Autoscaling adds another concern: new pods must not receive traffic until they are ready, and their database connections count against the limit the database can serve. Confirm your replica ceiling and connection budget before tuning probe thresholds.

What should a partner need to scope this work?

A partner needs enough detail to estimate the decisions described above, so expect questions about your deployment method, the number of gateway instances, the ingress or load balancer product, the database and Redis topology, and the models you serve. Also expect questions about the security rules for unauthenticated callers and who reviews probe output. Bring your current manifests or Helm values and a short description of past incidents. The quote comes from that written scope, and DeployOpen does not publish a price list.

Who pays for the work, and what should a quote include?

Your organization pays for the internal time of its platform, security and application owners, and for any external implementation work. A quote should separate the setup items (manifest changes, load balancer configuration, test runs and handover) from recurring items (monitoring review, upgrade checks and model onboarding). Ask for the assumptions behind the schedule, the test environments required, and what is excluded, such as changes to the database platform or the identity provider. Scope, deliverables and timelines are agreed in writing before work starts.

How DeployOpen scopes and delivers LiteLLM probe and health check work

DeployOpen treats LiteLLM health checks as part of the gateway design, not an afterthought. We scope which endpoints each probe uses, wire them into your Kubernetes or load balancer configuration, and test that each configured model can actually serve before the gateway takes production traffic.

How we scope

  • Inventory every probe, load balancer check and monitor that will call the gateway, and the network path each one uses
  • Confirm which database and Redis dependencies readiness should depend on, and which should only raise alerts
  • Decide who may see detailed health output and how unauthenticated callers are kept to low-detail responses
  • Agree the model list to validate, including providers and private models, in a written fixed scope

How we build

  • Configure liveness and readiness probes in the Kubernetes manifests or load balancer targets your team controls
  • Set probe timing and failure thresholds against your own startup behavior and load tests, not default values
  • Build a per-model check that sends a small test request through each route and records pass or fail
  • Review pod security settings and secret handling for the master key used by health and admin calls

How we hand over

  • Deliver the probe configuration, model check scripts and a written description of what each endpoint reports
  • Document the failure modes we tested, including a database outage and a single provider returning errors
  • Provide a runbook that explains how to read readiness failures and which team owns each kind of failure
  • Walk your platform and operations staff through the setup and retest any changes they request

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for the probe setup as the gateway changes
  • Re-validate probes after LiteLLM version upgrades, new providers or changes to database and Redis topology
  • Retest model checks when provider credentials, routes or model lists change in your configuration
  • Confirm support terms, response expectations and escalation paths with us in writing before work starts

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.