DEV Community

Linta Paul
Linta Paul

Posted on • Originally published at Medium

Kubernetes Services — How Your App Finally Talks to the World

The Problem — Your App is Invisible

You deployed your app in Kubernetes. Pods are running.
But open a browser — nothing loads.

Why? Pods are isolated by default. They have internal IPs
that the outside world cannot reach. And those IPs change
every time a Pod restarts.

What a Kubernetes Service Does

A Service gives your app a stable, permanent endpoint —
a fixed IP and port that stays the same no matter what
happens to your Pods.

It does three things:

  • Exposes a stable IP and port
  • Groups the right Pods using selectors (labels)
  • Automatically reroutes traffic if a Pod crashes

The 3 Types of Services

Type Who Can Access Use Case
ClusterIP Inside cluster only Microservices
NodePort Same network Local testing
LoadBalancer The internet Production

A Real Service YAML

apiVersion: v1
kind: Service
metadata:
  name: my-web-service
spec:
  type: LoadBalancer
  selector:
    app: my-web-app      # finds pods with this label
  ports:
    - port: 80
      targetPort: 8080
Enter fullscreen mode Exit fullscreen mode

The Key Insight

Services find Pods by label, not IP address.
Pods can crash, restart, scale — the Service always finds them.
Your users never notice anything happening in the backend.


This is Lesson 5 of my Inside Kubernetes series.

Get all 10 lessons as a structured PDF → [coming soon on Gumroad]

Top comments (0)