Difference between revisions of "Kubectl label"
Jump to navigation
Jump to search
Line 16: | Line 16: | ||
== Activities == | == Activities == | ||
+ | * [[CKA v1.18]]: Use [[label]] selectors to [[schedule Pods]] | ||
* [[CKA v1.15: Understand how to use Labels, Selector and Annotations]] | * [[CKA v1.15: Understand how to use Labels, Selector and Annotations]] | ||
Revision as of 14:50, 22 August 2020
kubectl label pods my-pod new-label=awesome_label
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
- Labels (Kubernetes)
Activities
- CKA v1.18: Use label selectors to schedule Pods
- CKA v1.15: Understand how to use Labels, Selector and Annotations
See also
- Labels (Kubernetes)
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: