What is the main purpose of a readiness probe in a Kubernetes pod?
Think about when Kubernetes should send traffic to a pod.
A readiness probe tells Kubernetes if a pod is ready to receive requests. If the probe fails, the pod is removed from service endpoints until it passes again.
Given a pod with a readiness probe that fails continuously, what will be the state of the pod in the Kubernetes service endpoints?
Consider what happens when a pod is not ready but still running.
If the readiness probe fails, Kubernetes stops sending traffic to the pod by removing it from service endpoints, but it does not restart or delete the pod.
Which of the following YAML snippets correctly configures a readiness probe that checks HTTP path /health on port 8080 every 10 seconds with a timeout of 5 seconds?
Look for the HTTP GET method with correct timing settings.
Option A correctly uses httpGet with the right path, port, and timing parameters. Other options either use wrong timing or different probe types.
A pod's readiness probe is failing, but the container is running fine. Which of the following is the most likely cause?
Think about what the readiness probe checks specifically.
Readiness probes check if the container is ready to serve traffic, often by hitting a specific path or port. If that path or port is wrong or the service is not responding, the probe fails even if the container is running.
During a rolling update, how does a failing readiness probe affect the deployment rollout process?
Consider how Kubernetes balances availability and rollout progress.
Kubernetes removes pods failing readiness probes from service endpoints so they don't receive traffic. The rollout continues respecting maxUnavailable limits, allowing some pods to be unavailable temporarily.