Cloud and platform engineering

Configure Kubernetes probes for startup and health

Separate startup, readiness and liveness checks so orchestration responds appropriately to slow initialization and dependency outages. A liveness probe that depends on a transient external service can restart every replica during an upstream outage. An overly permissive readiness check can send traffic to an unready process. Cloud architecture decisions trade cost, resilience, operational skill and recovery time; validate them against service objectives rather than adopting a pattern by default.

Operational constraints and failure modes

A liveness probe that depends on a transient external service can restart every replica during an upstream outage. An overly permissive readiness check can send traffic to an unready process.

  • Define service objectives and recovery targets
  • Model dependency and regional failure modes
  • Measure cost and operational overhead

Implementation approach

Use startup probes for slow initialization, readiness for the ability to serve requests, and liveness only for conditions a restart can correct. Bound timeouts and avoid cascading dependency checks.

  • Confirm the responsible owner
  • Apply the change to a representative case
  • Document decisions and exceptions

Practical example

A service becomes ready after loading required local configuration, but its liveness endpoint remains healthy during a temporary billing-provider outage so Kubernetes does not restart the whole fleet.

  • Reproduce the starting situation
  • Apply the described approach
  • Check the user-facing result

Verification and follow-up

Test slow startup, stuck process, dependency outage and recovery; confirm probe thresholds do not cause synchronized restart storms.

  • Test expected and failure cases
  • Compare with the recorded baseline
  • Agree the next review date and owner

Questions to keep in view

When should a team use this cloud and platform engineering guide?

Separate startup, readiness and liveness checks so orchestration responds appropriately to slow initialization and dependency outages.

What should be checked before rollout?

Test slow startup, stuck process, dependency outage and recovery; confirm probe thresholds do not cause synchronized restart storms.