Machine-translated by Google. Questions are authored in English.
Top

Discussion

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.

  • A.A is true but R is false
  • B.A is false but R is true
  • C.Both A and R are true, and R is the correct explanation of A
  • D.Both A and R are true, but R is not the correct explanation of A

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.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.