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
calicoctl label --help to display the following help menu for the
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
calicoctl label nodes node1 cluster=frontend --overwrite
Results indicate that label was successfully overwritten.
- Remove label with key
clusterfrom the node.
calicoctl label nodes node1 cluster --remove
Results indicate that the label was successfully removed.