Tutorial: Kubernetes Services for pods running in k8s cluster

shazni nazeer
Published in
5 min readJan 11

Photo by Aditya Joshi on Unsplash (Used this image to indicate a home address as a metaphor to a static IP address)

Pods in kubernetes (k8s) are ephemeral; i.e. They come and go anytime. We can’t assume a pod will live forever or even a specific amount of time. Pods have IP addresses. Due to its ephemeral nature, it will not have a static IP address. When it starts afresh k8s will assign it a new IP address. Then how does another pod access the ports and services exposed by the Pod exposing a…