Complete the code to define a liveness probe path in a Kubernetes pod spec.
livenessProbe:
httpGet:
path: [1]
port: 8080The liveness probe typically uses the /healthz endpoint to check if the container is alive.
Complete the code to define a readiness probe path in a Kubernetes pod spec.
readinessProbe:
httpGet:
path: [1]
port: 8080The readiness probe usually uses the /ready endpoint to check if the app is ready to serve traffic.
Fix the error in the probe configuration to correctly specify the initial delay seconds.
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: [1]The initialDelaySeconds must be a positive integer, so 5 is correct.
Fill both blanks to configure a readiness probe with a TCP socket check and a timeout.
readinessProbe:
tcpSocket:
port: [1]
timeoutSeconds: [2]The readiness probe uses port 8080 and a timeout of 5 seconds.
Fill all three blanks to configure a liveness probe with an exec command, initial delay, and period seconds.
livenessProbe:
exec:
command:
- [1]
- [2]
initialDelaySeconds: [3]The liveness probe runs cat /tmp/healthy after an initial delay of 10 seconds.