Difference between revisions of "Kubectl label"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Tags: Mobile web edit, Mobile edit
Line 14: Line 14:
 
== Related terms ==
 
== Related terms ==
 
* <code>[[kubectl annotate]]</code>
 
* <code>[[kubectl annotate]]</code>
* <code>[[kubectl get nodes]] --show-labels</code>
+
* <code>[[kubectl get nodes --show-labels]]</code>
 
* [[Labels (Kubernetes)]]
 
* [[Labels (Kubernetes)]]
  

Revision as of 16:55, 13 June 2022

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

See also

Advertising: