Complete the code to define a liveness probe that checks the application health on port 8080.
livenessProbe:
httpGet:
path: /healthz
port: [1]The liveness probe uses port 8080 to check the health endpoint /healthz.
Complete the code to set a readiness probe that checks the path '/ready' on port 9090.
readinessProbe:
httpGet:
path: [1]
port: 9090The readiness probe checks the /ready path to confirm the app is ready to receive traffic.
Fix the error in the probe configuration by choosing the correct probe type.
[1]:
exec:
command:
- cat
- /tmp/healthyhttpGet or tcpSocket keys incorrectly.The probe type must be livenessProbe to check if the container is alive using an exec command.
Fill both blanks to create a readiness probe with a TCP socket check on port 3306.
readinessProbe: [1]: port: [2]
The readiness probe uses a TCP socket check on port 3306 to verify the app is ready.
Fill all three blanks to define a liveness probe that runs a command, with initial delay and timeout seconds.
livenessProbe:
exec:
command:
- [1]
- [2]
initialDelaySeconds: [3]The liveness probe runs cat /tmp/healthy command with an initial delay of 5 seconds.