DevOps Dictionary

A straightforward reference for DevOps terms and concepts.

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

Kubernetes Labels and Selectors

Container Orchestration

Kubernetes Labels and Selectors are the tags and matching rules Kubernetes uses to group objects. A label is a key and value pair attached to an object (for example, app=payments on a Pod). A selector is a query over labels, and Services, Deployments and network policies use selectors to find the Pods they act on. A Service with the selector app=payments sends traffic only to Pods that carry that label.

Patent-style sketch of Kubernetes Labels and Selectors: a service valve feeding a horseshoe magnet as the selector, which reaches only the pod capsules that carry a paper tag as the label, labelled 10 PODS, 12 LABEL, 14 SELECTOR, 16 SERVICE.

See also Kubernetes LimitRange, Kubernetes Liveness Probe, Kubernetes MutatingAdmissionWebhook, Kubernetes Namespace, Kubernetes NetworkPolicy, Kubernetes Node.