Labels and Loose Coupling
Learn about loose coupling between Services and Pods via labels and label selectors.
Services are loosely coupled with Pods via labels and label selectors. This is the same technology that loosely couples Deployments to Pods and is key to the flexibility provided by Kubernetes. The figure below shows an example where 3 Pods are labelled as zone=prod
and version=1
, and the Service has a label selector that matches.
Get hands-on with 1200+ tech skills courses.