Difference between revisions of "Kubernetes labels"
Jump to navigation
Jump to search
m (Welcome moved page Labels (Kubernetes) to Kubernetes labels) Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 1: | Line 1: | ||
* <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> | ||
+ | |||
+ | * <code>[[kubectl get nodes --show-labels]]</code> | ||
== Activities == | == Activities == |
Revision as of 16:57, 13 June 2022
kubectl label pods -l app=LABEL new_label_tier=new_label_valuefe
kubectl label nodes <node-name> <label-key>=<label-value>
Activities
- CKA v1.18: Use label selectors to schedule Pods
- CKA v1.15: Understand how to use Labels, Selector and Annotations
See also
kubectl
: [cp | config | create
|delete
|edit | explain |
apply
|exec
|get
|set
|drain | uncordon | rolling-update
|rollout
|logs
|run
|auth
|label | annotate
|version
|top
|diff
|debug
|replace
|describe
|port-forward | proxy
|scale
|rollout
|api-resources
| expose deployment | expose | patch | attach | get endpoints | ~/.kube/config | kubectl logs --help | kubectl --help, kubectl-convert, kubectl autoscale, kubectl.kubernetes.io
Advertising: