Why Kubernetes Services exist
WHAT IT TESTS: Grasp of Pod IP instability. OUTLINE: Pod IPs are ephemeral and change on reschedule; a Service gives a stable virtual IP and DNS name plus load balancing across healthy Pods via label selectors.
WHAT IT TESTS: Whether you understand that Pods are ephemeral. ANSWER OUTLINE: Pods get IPs that disappear and change whenever a Pod is rescheduled, scaled, or restarted, so hard-coding Pod IPs is brittle. A Service provides a stable virtual IP (ClusterIP) and DNS name that persist for the Service's lifetime. It uses a label selector to track the current set of healthy Pods and load-balances traffic across them. RED FLAG: Claiming Pod IPs persist across restarts, or thinking Services are purely for exposing apps externally.
Read the original → interview
- #kubernetes
- #services
- #networking
- #clusterip
- #load-balancing
Get five bites like this every day.
Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.