Labels are key-value pairs attached to Kubernetes objects. A selector chooses the objects carrying certain labels: this is how a Deployment finds its Pods and a Service knows which ones to send traffic to. A mismatched label is a frequent cause of silent failure.
Example
selector:
matchLabels:
app: web