Complete the code to define a readiness probe that checks HTTP path '/ready'.
readinessProbe:
httpGet:
path: [1]
port: 8080The readiness probe uses the HTTP path '/ready' to check if the container is ready to receive traffic.
Complete the code to set the readiness probe initial delay to 5 seconds.
readinessProbe:
initialDelaySeconds: [1]The initialDelaySeconds field sets how long Kubernetes waits before starting readiness checks. Here it is set to 5 seconds.
Fix the error in the readiness probe port number (should be 8080).
readinessProbe:
httpGet:
path: /ready
port: [1]The readiness probe must use the correct port 8080 where the container serves readiness requests.
Fill both blanks to set readiness probe timeout to 3 seconds and period to 10 seconds.
readinessProbe: timeoutSeconds: [1] periodSeconds: [2]
timeoutSeconds is set to 3 to limit probe wait time, and periodSeconds is set to 10 to check every 10 seconds.
Fill all three blanks to define a readiness probe with exec command 'cat /tmp/ready', initial delay 5, and failure threshold 3.
readinessProbe:
exec:
command: [[1]]
initialDelaySeconds: [2]
failureThreshold: [3]The exec command checks the file '/tmp/ready' to confirm readiness. Initial delay is 5 seconds, and failure threshold is 3 retries.