Services provide stable endpoints for pods that come and go.
Service types:
- ClusterIP: Internal only (default)
- NodePort: Exposes on each node's IP at a static port
- LoadBalancer: Provisions cloud load balancer
- Headless: No cluster IP, returns pod IPs directly
DNS: Services get DNS names like my-service.namespace.svc.cluster.local
Interview question: "How does service discovery work in Kubernetes?"
Pods find services through DNS or environment variables. The kube-proxy routes traffic to healthy pod endpoints.