Kubernetes labels
Jump to navigation
Jump to search
https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
kubectl label pods -l app=LABEL new_label_tier=new_label_valuefe
kubectl label nodes <node-name> <label-key>=<label-value>
kubectl get pods -l environment=myproduction,tier=myfrontend kubectl get pods -l 'environment in (myproduction, myqa)'
Activities
- CKA v1.21: Understand how to use Labels, Selector and Annotations
- CKA v1.15: Understand how to use Labels, Selector and Annotations
- CKA v1.18: Use label selectors to schedule Pods
Related
See also
Advertising: