🔷 Why We Need Services

Problem:

Pods are ephemeral.

If you run:

kubectl get pods -o wide

You’ll see each pod has its own IP.

Example:

10.244.0.5
10.244.0.8
10.244.0.12

But:

So you cannot hardcode pod IPs.

Solution:

A Service provides: