Difference between revisions of "Kubernetes labels"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 1: | Line 1: | ||
+ | https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ | ||
+ | |||
* <code>[[kubectl label]] pods -l app=LABEL new_label_tier=new_label_valuefe</code> | * <code>[[kubectl label]] pods -l app=LABEL new_label_tier=new_label_valuefe</code> | ||
* <code>[[kubectl label]] [[nodes]] <node-name> <label-key>=<label-value></code> | * <code>[[kubectl label]] [[nodes]] <node-name> <label-key>=<label-value></code> |
Revision as of 17:04, 13 June 2022
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>
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: