Warning:
You're not viewing the latest copy of this page.
calicoctl label
This section describes the calicoctl label
command.
Read the calicoctl command line interface user reference for a full list of calicoctl commands.
Note: The available actions for a specific resource type may be limited based on the datastore used for Calico (etcdv3 / Kubernetes API). Please refer to the Resources section for details about each resource type.
Displaying the help text for ‘calicoctl label’ command
Run calicoctl label --help
to display the following help menu for the
command.
Examples
-
Label a node.
calicoctl label nodes node1 cluster=backend
Results indicate that label was successfully applied.
- Label a node and overwrite the original value of key
cluster
.calicoctl label nodes node1 cluster=frontend --overwrite
Results indicate that label was successfully overwritten.
- Remove label with key
cluster
from the node.calicoctl label nodes node1 cluster --remove
Results indicate that the label was successfully removed.
Options
General options
See also
- Installing calicoctl
- Resources for details on all valid resources, including file format and schema