kubectl label
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
kubectl annotate
kubectl get nodes --show-labels
kubectl get pods --show-labels
eks.amazonaws.com/compute-type: fargate
Activities
- CKA v1.18: Use label selectors to schedule Pods
- CKA v1.15: Understand how to use Labels, Selector and Annotations
- Assign Pods to Nodes using Node Affinity
See also
Advertising: