Complete the code to define a liveness probe using an HTTP GET request.
livenessProbe:
httpGet:
path: [1]
port: 8080The /healthz path is commonly used for liveness probes to check if the container is alive.
Complete the code to set the initial delay before the liveness probe starts.
livenessProbe:
initialDelaySeconds: [1]initialDelaySeconds defines how long to wait before starting the liveness probe. 10 seconds is a common safe delay.
Fix the error in the liveness probe configuration by completing the missing field.
livenessProbe:
tcpSocket:
port: [1]The port field must be a number or named port. 8080 is a common port for HTTP services.
Fill both blanks to configure a liveness probe with an exec command and failure threshold.
livenessProbe:
exec:
command:
- [1]
- [2]
failureThreshold: 3The exec command cat /tmp/healthy checks if the file exists to confirm liveness.
Fill all three blanks to create a liveness probe with HTTP GET, timeout, and period seconds.
livenessProbe:
httpGet:
path: [1]
port: [2]
timeoutSeconds: [3]
periodSeconds: 10This liveness probe checks /healthz on port 8080 with a 5 second timeout and probes every 10 seconds.