Difference between revisions of "Kubectl label"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
Line 24: | Line 24: | ||
* {{kubectl label}} | * {{kubectl label}} | ||
* {{Kubernetes labels}} | * {{Kubernetes labels}} | ||
− | + | * {{kubectl}} | |
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Revision as of 20:59, 8 July 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
kubectl label [ pods | nodes | --help ]
- Kubernetes labels, selectors, recommended labels
,
kubectl label, kubectl annotate
, Common,kubernetes.io, app.kubernetes.io, MatchLabels:
,labels:
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: