Startup, Liveness and Readiness Probes on OpenShift

What is the probe ?

Probe is health check of the running pods for certain purposes, it means if the check is failed, then specific action is conducted to the pods. Such as restarting the pods and blocking external accesses to the pods.

startup, liveness and readiness probes process chart.

How to configure the probes ?

The configuration items are as follows, refer Configure Probes for more details.

initialDelaySeconds(default: 0, min: 0): number of seconds until initialize the first probe check.
periodSeconds(default: 10, min: 1): number of seconds for interval to execute the check.
timeoutSeconds(default: 1, min: 1): number of seconds for the executed check timeout.
successThreshold(default: 1, min: 1): minimum consecutive successes for successful evaluation. startup and liveness probes must be 1.
failureThreshold(default: 3, min: 1): consecutive failures until the check is evaluated as fail.
startupProbe:
httpGet:
path: /startup_healthz
port: 8080
failureThreshold: 20
periodSeconds: 2
livenessProbe:
httpGet:
path: /liveness_healthz
port: 8080
failureThreshold: 3
periodSeconds: 3
readinessProbe:
httpGet:
path: /readiness_healthz
port: 8080
failureThreshold: 3
periodSeconds: 3

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store