Zitadel health and readiness probes

Zitadel's health and readiness endpoints decide when a pod receives traffic and when a load balancer pulls it out. This page explains how to use them correctly, including during schema migrations, and what uptime checks should cover beyond the probes.

On this page

Zitadel health and readiness probes: what they tell your traffic layer

If you run self-hosted Zitadel behind Kubernetes or a load balancer, the question that matters is simple: when is this instance ready to take logins? The two Zitadel endpoints covered here, /debug/healthz and /debug/ready, are meant to answer different parts of that question. Liveness asks whether the process is still running and should be restarted if it is stuck. Readiness asks whether the instance can serve traffic right now. External uptime checks sit outside the cluster and test what a user or relying party actually reaches, such as the login pages and the OIDC discovery document at /.well-known/openid-configuration. Before you wire any of these into probes, confirm the exact response codes, the dependencies each endpoint checks (including the database), and the behavior for your release in the Zitadel documentation, since the endpoints are version-dependent.

Readiness matters most during schema migrations and rolling upgrades. When a new Zitadel version starts, it may run database migrations and setup steps before it is safe to serve requests, and during a rolling update old and new pods can briefly coexist. If the load balancer sends traffic to a pod that has not finished its startup work, users see errors that look like authentication failures. Tie readiness to the endpoint that reflects this state, and check that a pod is removed from the service when the database is unreachable. Plan your upgrade window and the readinessProbe initial delay together, and test both in staging with the same PostgreSQL version you run in production, which must be within the 14 to 18 range Zitadel supports.

Treat liveness with more caution than readiness. A liveness probe that fails under load or during a slow migration can cause Kubernetes to restart pods in a loop, which adds load to the database and extends the outage. Set generous timeouts and failure thresholds, and keep liveness checks shallow so that a slow database does not look like a dead process. Add an external uptime check against the login and discovery endpoints from outside your cluster, so that you detect failures in ingress, TLS, or the proxy that internal probes cannot see. Document which signal drives paging, which drives automatic restarts, and who owns each one, and rehearse a failed-readiness scenario before go-live.

Which endpoint answers which question

This table compares the four endpoints you are likely to check for a self-hosted Zitadel: the health and readiness debug endpoints, the hosted login page and the OIDC discovery document. Read each row as the question an endpoint answers, where it belongs in your probes or external monitoring, and what a failure should trigger. Confirm the internal checks of each endpoint against your Zitadel version before treating it as a dependency check.

EndpointQuestion it answersWhere it belongsWhat a failure should trigger
/debug/healthzIs the Zitadel process running and responding to HTTP?Liveness probe. Confirm whether it checks database reachability in your version.Restart the pod only if it stays failing; a restart will not fix a database outage.
/debug/readyCan this instance accept traffic right now, including during startup or schema work?Readiness probe and load balancer health check. Confirm which dependencies it checks.Remove the instance from rotation and hold traffic. Do not restart it for a readiness failure alone.
Hosted login pageCan a user actually reach the sign-in experience through the public domain?External uptime monitor, through the same proxy and TLS path users take.Page an operator. Check ingress, certificates, DNS and the login container before changing Zitadel.
OIDC discovery documentCan relying applications find the issuer metadata they need to start a sign-in?External uptime monitor and a post-deploy smoke test, checking the issuer URL from outside the cluster.Treat as a customer-facing outage. Verify the external domain and proxy headers before anything else.
Probe scopeWhat each check proves and what it cannot proveDocument it in your runbook next to each probe definition.A passing probe is not proof of a working login. Pair probes with a real sign-in test.

How readiness gates traffic during a rolling update

The diagram starts with the kubelet running the readiness and liveness probes against the Zitadel pod. A failed readiness check removes the pod from the Service endpoints, so the load balancer stops sending it requests, while a failed liveness check makes the kubelet restart the container. The external uptime checker reaches the login and OIDC discovery URLs through the same ingress, so it sees what users see. Check that readiness reflects database reachability and migration state, and that the probe paths match your Zitadel release.

Probe failures decide whether a pod receives traffic or restarts.

Why readiness matters during schema migrations

A readiness probe decides when a new Zitadel pod is allowed to receive traffic, and during a release that decision matters more than it does on a steady system. Self-hosted Zitadel stores its data in PostgreSQL, with versions 14 through 18 supported, and a new release can require database changes before an instance can serve requests safely. If a pod starts answering before those changes are finished, users may reach login or token endpoints that assume a schema the database does not yet have. Readiness is the signal that prevents this: a rolling update keeps the old pods serving until the new pods report ready, so a failed or slow migration holds traffic back instead of exposing it.

Check how your release orders its setup job and migration steps before you set probe thresholds. Confirm the sequence in the release notes for the exact version you run, using the zitadel/zitadel releases page to find the current version list and any upgrade notes that apply to your path. Confirm whether the setup job must complete before the new deployment is created, whether it runs as a separate Kubernetes job, and whether any step needs downtime or a specific intermediate version. Write these answers into your runbook, because the probe timing you choose should allow for the migration time you actually observe in a test upgrade.

How to wire the probes into a Kubernetes deployment

This sequence takes a team from the Helm chart defaults to a Zitadel deployment whose readiness and liveness probes are verified in staging and behave correctly during a rolling update. Each step ends with a check you can record.

  1. Confirm probe paths and ports in chart values

    Open the values file of the official Zitadel Helm chart that you plan to deploy, and locate the probe settings for the Zitadel container. Confirm that the readiness probe targets /debug/ready and the liveness probe targets /debug/healthz, and note the HTTP port each one uses. Compare these with the Zitadel release version you are deploying, since the chart and the application can change together. Render the manifests with helm template and check that the generated Deployment carries the same paths and ports. You are done when the rendered manifest matches the values you reviewed and you have written down the chart version, the app version and the probe port. If the paths differ, ask the chart maintainers or Zitadel support before you continue.

  2. Set probe timings for startup and migrations

    Review the initialDelaySeconds, periodSeconds, timeoutSeconds and failureThreshold values for the readiness and liveness probes. Readiness controls whether a pod receives traffic, so it should be able to report not ready while the pod runs database setup or schema migrations. Liveness restarts a pod that is stuck, so a short timeout on a pod that is still migrating can cause restart loops. Set a longer startup allowance for the first deployment, and ask your Zitadel contact to confirm the expected migration behavior for the version you are running. Record the chosen values in your change request. You are done when helm template shows the final timings and you have a written reason for each value that differs from the chart default.

  3. Deploy to a staging cluster with a test database

    Install the chart into a staging namespace that uses a PostgreSQL instance matching your production major version, within the supported range from the Zitadel database documentation. Use the same ingress or load balancer type you plan to use in production so probe and routing behavior is representative. Wait for the setup job and the first pods to finish. You are done when kubectl get pods shows the Zitadel pods as Running and Ready, and the setup job shows Completed.

  4. Verify readiness and liveness from inside the cluster

    Use kubectl describe pod on one Zitadel pod and confirm the Readiness and Liveness lines show the paths and timings you reviewed, with no recent probe failure events. Then run a short-lived curl pod in the same namespace and request the readiness path on the pod IP or the Service, for example with kubectl run and curl. A successful response means the pod reports ready. You are done when the describe output shows no unexpected Unhealthy events and the curl response matches the success code your probe expects.

  5. Verify the load balancer health check

    Point your external load balancer or ingress health check at the same readiness path and confirm it marks the backend healthy. Request the path through the public or internal hostname your users will reach, and confirm that the response is the expected success status. Check that the health check interval and thresholds on the load balancer are compatible with the pod probe timings so that a pod is removed from rotation only when it is actually not ready. You are done when the load balancer shows all Zitadel backends as healthy and a curl through the hostname returns the expected status.

  6. Run a rolling update and observe endpoint changes

    Trigger a rolling update in staging by changing a non-breaking value, such as a pod annotation, and then run kubectl rollout status for the Deployment. While the rollout runs, watch the Service endpoints with kubectl get endpoints -w and kubectl get pods -w. New pods should appear in the endpoints only after their readiness probe succeeds, and old pods should leave the endpoints before they terminate. Keep a request loop running against the readiness path through the load balancer to confirm no errors appear. You are done when the rollout completes and the endpoint and request logs show that traffic moved only to ready pods.

  7. Record the verified configuration for production

    Write down the chart version, the Zitadel version, the final probe paths, timings, the staging test results and the exact commands used. Include the output of the describe and rollout checks, and note any probe behavior you observed during migrations. Ask your Zitadel contact to review the recorded configuration if you are running a version with a schema change. You are done when this record is attached to the production change request and the same chart values are used for the production install.

Probe settings that cause avoidable outages

Most Zitadel outages caused by probes come from a small set of misconfigurations, not from Zitadel itself. The cards below describe each failure mode, the symptom it produces, and the check that confirms whether a cluster or load balancer is exposed to it.

Liveness probe restarts pods mid-migration

A liveness probe that fails while Zitadel applies schema or projection changes can restart a pod partway through work that is not finished. The pod comes back, starts the same work again, and the rollout appears stuck in a restart loop. Check whether the liveness probe targets the same endpoint as readiness, and whether the failure threshold leaves room for a long startup. Keep liveness limited to detecting a process that cannot recover, and let readiness carry the traffic decision.

Self-hosting docs

Readiness depends on external systems

If the readiness probe also checks an identity provider, an SMTP relay or another service the pod cannot control, a failure in that dependency removes every Zitadel pod from the load balancer at once. Users then see errors even though Zitadel itself could serve requests. Check what the readiness endpoint actually reports, and confirm which of those dependencies Zitadel itself needs before it can serve traffic. Anything outside that list should be monitored separately.

Probe timeouts shorter than database latency

A probe timeout set below normal database round trips causes healthy pods to fail during a slow query, a backup window or a connection pool wait. The symptom is intermittent endpoint removal that clears on its own and leaves no clear error in Zitadel logs. Measure typical database latency during peak login traffic and during scheduled database jobs, then set the probe timeout above the observed range. Confirm the value with your own load test results rather than a default from a chart.

Database docs

Load balancer checks an unrepresentative path

A load balancer health check pointed at a page or path that does not reflect Zitadel readiness can keep sending traffic to a pod that cannot complete logins, or drop a pod that is serving normally. Check which path the load balancer polls, what status code it expects, and whether that path depends on the same components as a real OIDC request. Compare the result with a test login and a call to the OIDC discovery endpoint from outside the cluster.

Probes missing after chart or proxy changes

A Helm value override, a rewritten chart template or a new proxy layer can silently drop probe definitions from the Zitadel workload. Pods then start receiving traffic before migrations complete, and failed pods stay in rotation. Render the chart with your values before each upgrade and confirm that readiness and liveness are present on every Zitadel container. Repeat the check after any change to the ingress or proxy that fronts Zitadel, because the proxy may also carry its own health settings.

Deployment overview

Readiness during schema migrations

Readiness must reflect whether a pod can serve correct responses while the database schema is changing. A pod that reports ready before a migration finishes can route logins against an incomplete schema. Confirm the ordering of setup jobs and the rollout strategy in your deployment, and watch for readiness flapping during the upgrade window. Treat any pod that stays unready after a migration as a signal to check the setup job logs before changing probe thresholds.

Health checks by deployment model

The official Helm chart is the path Zitadel recommends for high availability, so most teams will set probes through the chart values. The kubelet calls the endpoints from inside the cluster, which means the cluster decides when a pod is restarted and when it receives traffic. Review the Zitadel self-hosting overview to confirm the deployment model matches your plan.

  • Liveness on /debug/healthz: Use this probe to decide whether a process should be restarted. Keep the check narrow so a temporary database slowdown is less likely to trigger restart loops.
  • Readiness on /debug/ready: This probe controls whether a pod receives traffic, including while it is starting up and while schema migrations run.
  • Service and ingress checks: The cluster owns the pod probes. Your ingress controller or external load balancer runs its own health checks, which you configure separately.
  • Probe timing: Confirm the initial delay, period and failure threshold in the chart values against the time your migration job can take in your environment.
  • Chart version keys: Confirm the probe keys exposed by the chart version you deploy, because key names can change between chart releases.

Confirm that the readiness probe fails until the setup job finishes and that the ingress health check path matches the endpoint the pods expose.

Uptime checks on the login and OIDC discovery endpoints

Internal probes tell the cluster that a Zitadel pod is serving, but they do not tell you what a user or a relying application actually reaches. An external synthetic check runs from outside your network against the public login path and the OpenID Connect discovery document, so it exercises the same chain users depend on: DNS, TLS termination, the load balancer or ingress, the HTTP/2-capable proxy, and then Zitadel itself. A failure in any of those layers shows up here even when /debug/ready still returns success inside the cluster. Zitadel implements OpenID Connect, OAuth 2.0 and SAML 2.0, and the discovery document at the instance's /.well-known/openid-configuration path is the first thing most relying applications fetch, so it deserves its own check.

Define what a useful check asserts, not just whether a connection opens. For the discovery document, assert an HTTP 200 status, a Content-Type of application/json, and the presence and expected values of fields such as issuer, authorization_endpoint, token_endpoint, jwks_uri and response_types_supported. Check that issuer matches your public domain exactly, because a mismatch often appears after a proxy or domain change and breaks token validation downstream while the endpoint still looks healthy. For the login path, assert the status code and a content type consistent with the hosted login page, and confirm the response is not a gateway error page. Run the check against the same hostname your users type, and record the certificate expiry date as a separate signal. Confirm the exact field list and endpoint paths against the version you run, since they are defined by the OIDC specification and Zitadel's own configuration rather than by this page.

Set the frequency and alert routing according to what you can act on. A check interval shorter than your alert tolerance creates noise, while a long interval delays detection of a broken proxy rule. Agree the interval, the number of consecutive failures before paging, and the escalation path with the teams that own DNS, the edge and the identity service, and write them down. Send page-level alerts to the on-call group responsible for authentication, and send certificate expiry warnings to the team that renews certificates. Test the alert itself by temporarily breaking the check in a staging environment before go-live. Your monitoring vendor's pricing and check location options are a cost driver to confirm in writing, and any external service that fetches your discovery document is a third party with access to your public endpoints, which your security review should cover.

Security and operational considerations for health endpoints

Health and readiness endpoints look harmless, but they affect what outsiders can learn about your Zitadel deployment, how traffic is counted, and who can change the probes that decide when pods receive requests. The cards below cover the decisions to make and confirm before the probes reach production.

Keep probes inside the cluster

Decide whether /debug/ready and /debug/healthz are reachable from the public internet or only from the cluster network and the load balancer's health checker. Public exposure lets anyone poll your deployment state and adds noise to monitoring. Restrict the paths at the ingress or proxy layer, then confirm the exact exposure and response content against the current Zitadel documentation for your version before you write the rule.

Self-hosting docs

Review what responses reveal

A health response can disclose internal state such as component status or database reachability. Capture a response from each endpoint in your version and record what it contains. Ask whether the content is safe for your threat model, and whether a proxy should strip or replace any body before it leaves your network.

Separate probe traffic in logs

Kubelet and load balancer checks send frequent identical requests. Without filtering they dominate access logs and can trip rate limits meant for real users. Decide which source addresses or user agents identify probe traffic, exclude them from security alerting, and exempt them from rate limiting only where the proxy can match them precisely.

Keep secrets out of probe configuration

Probe definitions are stored in manifests, dashboards and sometimes shared tickets. Do not place the masterkey, database passwords or tokens in probe commands, headers or URLs. If an exec probe is used, it should call a plain HTTP check rather than a script that reads secrets. Keep credentials in Kubernetes secrets or your secrets manager, and check rendered manifests for leaks.

Limit who can change probes

A readiness probe that is loosened or removed can send traffic to pods that are still migrating the schema or failing their database connection. Restrict edit rights on Deployments, Helm values and load balancer health checks to the platform team, and require a second reviewer for changes. Record who holds these permissions in your access review.

Track probe changes in Git

Store probe settings in the same Helm values or Kustomize overlays as the rest of the deployment, and promote them through the same pipeline. Commit history then shows when a timeout or path changed and why. Pair each change with a note linking to the test or incident that prompted it, so the reason survives staff changes and supports later audit evidence.

Questions teams ask about Zitadel probes and uptime checks

Do we need a partner to set up Zitadel health and readiness probes?

No. A capable platform team can wire probes into its own cluster or load balancer, and many do. A partner becomes useful when the setup has to fit a regulated change process, span several environments, or be reviewed by security and compliance teams before go-live. The probe configuration itself is small. The effort sits in deciding what each probe means for traffic, verifying the behavior during real upgrades and migrations, and documenting the result so an auditor or a new engineer can follow it. DeployOpen plans, implements and documents this work inside your own infrastructure, under a written scope agreed before work starts.

What does our internal team need to provide for probe work?

Your team needs to supply the environment and the decisions. Expect to provide access to the Kubernetes cluster or load balancer, the Zitadel deployment values, the public domain and TLS setup, and a named owner who can approve changes. You also need to say which paths matter to your business: the login pages, the OIDC discovery document, and the token endpoint that your applications call. Finally, confirm who receives alerts and how a failed probe should page someone. Without those inputs, the work stalls on access requests rather than on configuration, which is the most common delay in practice.

How long does probe setup take?

The duration depends on your environment. Relevant factors include how many Zitadel instances and environments you run, whether you use the official Helm chart or a custom deployment, how your load balancer and ingress are configured, how quickly access is granted, and how much testing your change process requires. A single cluster with existing monitoring tends to be quick to configure, while multiple regions, strict change windows or a required test cycle add time. Ask any provider for a timeline in the written scope, and confirm your own change-approval lead times before you agree one.

Do probes need to change between Zitadel releases?

Usually the probe endpoints stay the same, but the behavior around them can change during an upgrade. The important point is that readiness can fail while a schema migration runs, so a rolling upgrade may take pods out of service for longer than expected. Before each upgrade, review the release notes for the version you are moving to and check the upgrade guidance in the Zitadel documentation. Confirm timeouts, failure thresholds and the rollout strategy in a staging environment that mirrors production. Track the current release through the zitadel/zitadel releases page so the change is planned rather than discovered during an outage.

What drives the cost or effort of probe work up or down?

Four drivers matter most. The first is the number of deployments and environments, since each needs its own verification. The second is the topology: a single cluster with one load balancer is simpler than multi-region traffic management. The third is how often you upgrade, because probe behavior during migrations is where most of the testing effort goes. The fourth is evidence. If your compliance team needs documented probe settings, test records and runbooks, documentation takes real time. Ask any quote to itemize these: environments in scope, the upgrade test cycle, the documentation deliverables, and whether post-go-live support is included or billed separately.

Can DeployOpen own ongoing uptime monitoring under a retainer?

Yes, ongoing support is available as a retainer, and it can cover monitoring of Zitadel availability as part of day-two operations. Before agreeing to one, define exactly what is monitored: the readiness and liveness probes, uptime checks against the login page and OIDC discovery endpoint, alert routing, and who responds at which hours. The retainer scope should also state how upgrades and probe reviews are handled, and what is excluded, such as changes to your identity provider or application code. Because retainers recur, compare the scope against the cost of running monitoring with your own on-call rota before signing.

Which Zitadel endpoints should an uptime check test?

Test the endpoints a user or application actually depends on, not only the health route. At minimum, check the OIDC discovery document, the login page, and the token endpoint, because a pod can report ready while a dependent path is broken. Use the health and readiness routes for orchestration decisions, and external synthetic checks for what users experience through your public domain and TLS termination. Confirm the exact paths against the Zitadel documentation for your version, since the routes you monitor should match the release you run.

Limits to confirm in your environment

Probe design for Zitadel depends on details that vary by release, ingress path, load balancer and database. The cards below list the limits to confirm in your own environment before you write probe manifests or set health check thresholds, since each one changes what a green check actually means.

Probe response behavior for your release

The exact response of /debug/ready and /debug/healthz should be confirmed for the Zitadel release you deploy, not assumed from older documentation or blog posts. Check the latest published release on the GitHub releases page, then test both endpoints against a staging instance and record the status codes and bodies they return during startup, steady state and a forced database outage. Your probe thresholds should be based on that observed behavior.

Zitadel releases

Ingress and proxy probe support

Confirm that your ingress controller, reverse proxy or service mesh can forward the probe protocol and the HTTP/2 settings Zitadel expects for its gRPC and REST traffic. Some proxies rewrite health check paths, enforce their own timeouts or downgrade connections in ways that make a healthy pod look unhealthy. Test the full path from the load balancer to the pod, not only the pod's local port, and document which listener serves the probe.

Load balancer check intervals and thresholds

External load balancers run their own health checks on their own intervals and thresholds, separate from Kubernetes probes. Ask your platform team for the check interval, timeout, healthy and unhealthy threshold counts, and whether the check targets the readiness endpoint or the login path. A check that is too aggressive can remove every instance during a short database pause, while one that is too slow keeps sending traffic to a pod that cannot reach its database.

Multiple instances during migrations

Confirm how your deployment handles several Zitadel instances while schema migrations run, including whether one pod runs the migration while others wait, and how readiness reports that state. Ask your engineers to show which pods accept traffic during an upgrade and whether a rolling update can route requests to a pod built against a different schema. Verify this in staging with the same replica count you plan for production.

Network policies blocking probe traffic

Kubernetes network policies, host firewalls and cloud security groups can silently drop kubelet or load balancer probe traffic. Confirm which source addresses your probes use, then allow them explicitly in each policy layer that applies to the Zitadel namespace. A policy that blocks probes often shows up as restarts or pods stuck unready, so check the events and the policy objects before you change probe settings.

Supported PostgreSQL versions

Readiness depends on the database, so confirm that the PostgreSQL version you plan to run is on Zitadel's supported list. The documentation lists versions 14 through 18. Check the exact minor version against the database page before provisioning, and plan how you will upgrade PostgreSQL later, because a version outside the list can make readiness fail for reasons unrelated to the Zitadel pods.

Supported PostgreSQL versions
14 to 18
Zitadel database docs

How DeployOpen works on this

DeployOpen plans and implements Zitadel health and readiness probes inside your own infrastructure, so liveness, readiness and uptime checks match how your cluster, load balancer and database actually behave. Engagements are agreed as fixed-scope work with written deliverables before any change is made.

How we scope

  • Inventory your Zitadel topology, including Kubernetes or Docker Compose layout, reverse proxy and load balancer, and PostgreSQL version.
  • Agree which probe endpoints each component uses and which external checks cover login and OIDC discovery.
  • Define the migration window and how readiness should behave during schema changes, in writing.
  • Confirm the written scope, deliverables and timeline before implementation starts, since engagements are fixed-scope.

How we build

  • Configure liveness and readiness probes against the Zitadel debug endpoints in your Kubernetes manifests or Helm values.
  • Set load balancer health checks and external uptime checks on the login and OIDC discovery endpoints.
  • Test probe behavior during a rolling upgrade in a staging environment that mirrors production.
  • Verify that failed database connections or migrations keep unready pods out of rotation.

How we hand over

  • Deliver the probe configuration, uptime check definitions and alert routing as versioned files your team owns.
  • Document which endpoint answers which question, what each failure means and the first steps to take.
  • Run a handover session with your platform and operations engineers, and record the test results.
  • Include a runbook for upgrade windows so readiness behavior during schema migrations is predictable.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover.
  • Re-validate probe settings when you upgrade Zitadel or change the PostgreSQL version.
  • Review uptime alerts and probe failures with your team after incidents, and adjust configuration in the agreed scope.
  • Ask for the retainer terms, response expectations and included upgrade work in your written quote.

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.