can someone give an example or explain the difference between the liveness endpoint and the readiness endpoint for a webapp, that has a /ping endpoint that returns pong.
Do I need different probes here at all? I read in this blogpost https://komodor.com/learn/kubernetes-liveness-probes-a-practical-guide/ "You can use liveness and readiness probes on the same endpoint, but in this case, use the readiness probe to check startup behavior and the liveness probe to determine container health (in other words, downtime)"
But what would that mean regarding the implementation? higher initial delay seconds for readiness? and lower failurethreshold for liveness; e.g:
livenessProbe:
httpGet:
path: /health
port: 8080
periodSeconds: 10
failureThreshold: 6
readinessProbe:
httpGet:
path: /health
port: 8080
periodSeconds: 30
initialDelaySeconds: 10
failureThreshold: 3
or can I just dismiss liveness test, as I do not expect a deadlock event and the container restarts anyway when PID1 breaks?