A Pod shows READY 0/1 and STATUS Running, and its Service has no endpoints. The events include Readiness probe failed: Get "http://10.244.1.7:8081/healthz": connect: connection refused. The container serves HTTP on port 8080. What is the issue?
- A.
The readiness probe targets port 8081, but the application listens on 8080; correct the probe port.
- B.
The Pod must be deleted; Running Pods are never added to Services.
- C.
The liveness probe is restarting the container; remove the readiness probe from the Service.
- D.
The node is out of IP addresses.
Show answer and explanation
Answer: A
Pods that fail readiness are removed from Service endpoints while staying Running. The probe points at the wrong port, so it gets connection refused.
- Ready Pods are added to Services normally.
- The event concerns the readiness probe, and removing it would mark unready Pods as ready.
- IP exhaustion prevents Pod creation, not probing.