Label a Kubernetes node

To label a node, use the command:

kubectl label nodes {{ node }} {{ label-key }}={{ label-value }}

Example:

kubectl label nodes node1 size=Large