I try to restart the pod when an endpoint returns an HTTP 500 on the /health endpoint. The service, probe-pod, should never send traffic to the pod while it is failing.
I know how the readiness and liveness probe works but how to connect their response base of output? I can't solve the first and second items. How could I test the solution? Could anyone help me?
The following way you can choose I guess, also refer to this link for clarity
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: as-required-by-you
readinessProbe:
httpGet:
path: /start
port: 8080