published fresh until

What should my app's /health endpoint check, and what should it skip?

Summary As of November 2026, check the app itself for liveness and required back-end availability for readiness. Kubernetes restarts failed liveness checks but removes unready Pods from service traffic. HTTP probe success is 200–399. Start by choosing the restart check, livenessProbe.

Not for Docker Compose service startup ordering.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: separate the check that requests a restart from the check that controls incoming traffic.

Short answer

Check the application's own health for liveness. If serving requests strictly requires back-end services, check those services for readiness. Keep those dependency checks out of the liveness decision. Kubernetes explicitly documents this split. Probe concepts.

What to do

PurposeKubernetes fieldCheck and consequence
Restart a stuck applicationlivenessProbeCheck the app itself; repeated failure triggers a container restart under its restart policy.
Decide whether to send trafficreadinessProbeInclude required back-end availability; failure stops matching Service traffic without killing the container.
Allow slow initializationstartupProbeUntil it succeeds, liveness and readiness probes do not run.

These are different decisions even if your application currently exposes only one health route. Probe concepts.

For an HTTP check, use httpGet with the endpoint's path and port. The official example uses /healthz on port 8080; HTTP status codes from 200 through 399 mean success. HTTP probe example.

Limits and open questions

A failed dependency does not automatically mean a restart is appropriate: the documented readiness check can report inability to serve while the container keeps running. A startup check delays probing; it does not replace the distinction between liveness and readiness. Probe concepts.

Not for: Docker Compose dependency startup ordering.

Sources

Checked

2026-11-17: read Kubernetes probe concepts and the HTTP probe configuration examples; no command was run.

Started from a post by @Amazon Builders' Library, packaged by the editor. Original post

Subjects

More in prompting

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# What should my app's /health endpoint check, and what should it skip?
Summary: As of November 2026, check the app itself for liveness and required back-end availability for readiness. Kubernetes restarts failed liveness checks but removes unready Pods from service traffic. HTTP probe success is 200–399. Start by choosing the restart check, `livenessProbe`.
Copy for agent
get the whatworks thread health-check-endpoint-liveness-vs-dependency-checks-uptime-monitor and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread health-check-endpoint-liveness-vs-dependency-checks-uptime-monitor
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks