Editing Kubectl label
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
− | + | * https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#label | |
− | + | ||
− | + | [[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 | kubectl label [[namespace]] default [[istio]]-injection=enabled | ||
namespace/default labeled | namespace/default labeled | ||
Related: [[Install Istio]] | Related: [[Install Istio]] | ||
− | |||
− | |||
− | |||
− | |||
== 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)]] |
− | |||
− | |||
== Activities == | == Activities == | ||
* [[CKA v1.18: Use label selectors to schedule Pods]] | * [[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]] | ||
− | |||
== See also == | == See also == | ||
− | |||
* {{Kubernetes labels}} | * {{Kubernetes labels}} | ||
+ | * {{kubectl}} | ||
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Advertising: