Difference between revisions of "Kubectl label"
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
* <code>[[kubectl annotate]]</code> | * <code>[[kubectl annotate]]</code> | ||
* <code>[[kubectl get nodes --show-labels]]</code> | * <code>[[kubectl get nodes --show-labels]]</code> | ||
+ | * <code>[[kubectl get pods --show-labels]]</code> | ||
== Activities == | == Activities == |
Revision as of 11:07, 26 December 2022
kubectl label --help
kubectl label pods my-pod new-label=awesome_label kubectl label nodes <node-name> <label-key>=<label-value>
kubectl label error: one or more resources must be specified as <resource> <name> or <resource>/<name>
kubectl label namespace default istio-injection=enabled namespace/default labeled Related: Install Istio
Related terms
Activities
- CKA v1.18: Use label selectors to schedule Pods
- CKA v1.15: Understand how to use Labels, Selector and Annotations
See also
Advertising: