Handbooks / Kubernetes / Chapter 3
Services and Ingress
7 pages · ~5 min✓ Reviewed
Builds on Pods and Deployments. Next up: ConfigMaps and Secrets.
Labels, Selectors and Endpoints
1. Service and Labels
- Service = stable virtual IP + DNS name for changing Pods
- Pod IP changes whenever a Pod is replaced, so clients use the Service
- Labels = key/value tags on objects
spec.selector: equality only, all keys must match (AND)
2. From Selector to Backends
- Ready Podslabels match; failed probe = removed
- EndpointSlicescontrol plane
- kube-proxyiptables or IPVS