Probes and Health Check
Support for Kubernetes Probes
Liveness, Readiness, and Startup Probes
# setup http livenessProbe
# To perform a probe, the kubelet sends an HTTPGET request
# Service is considered healthy when /healthz retuns success code
livenessProbe:
httpGet:
path: /healthz #endpoint path
port: 8080
initialDelaySeconds: 3 #first Liveness check to be performed after 3 seconds.
periodSeconds: 3 #verify the liveness of the application every 3 seconds
# setup http readinessProbe
readinessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 5
periodSeconds: 5
# setup http startupProbe
startupProbe:
initialDelaySeconds: 1
periodSeconds: 5
timeoutSeconds: 1
successThreshold: 1
failureThreshold: 1
exec:
command:
- cat
- /etc/nginx/nginx.conf
Health Check
Last updated
Was this helpful?

