Assertion (A): A Service is needed even though pods have addresses of their own.
Reason (R): Pod addresses change whenever pods are replaced, while a Service address is stable.
Answer: C
Correct answer: Both A and R are true, and R is the correct explanation of A
Both are true and the reason gives the necessity. Pods are ephemeral: rescheduling, scaling and rolling updates all replace them, and each replacement gets a new address. A Service provides a stable name and virtual address in front of whichever pods currently match its selector, so callers need not track the churn behind it.
Please log in or register to report this question.