Kubernetes health probes
This page describes how to configure Kubernetes liveness, readiness, and startup probes for Valtimo.
Enabling readiness based on startup completion
By default the application reports itself as ready before startup has fully completed. Follow these steps so Kubernetes only routes traffic to a pod once it has finished starting up.
Enable the health probes
For a custom application, enable the management health probes (also enabled automatically when running in Kubernetes):
management: endpoint: health: probes: enabled: trueAdd the
bootstrapcheck to the readiness and startup groupsFor a custom application add:
management: endpoint: health: group: readiness: include: readinessState,bootstrap startup: include: readinessState,bootstrapPoint the Kubernetes probes at the health groups
In your deployment (for example your Helm chart), set:
readinessProbe→/management/health/readinessstartupProbe→/management/health/startup
Leave the
livenessProbeunchanged.
Last updated