kubectl get nodes --show-labels
#NAME STATUS ROLES AGE VERSION LABELS
# worker0 Ready <notextile><none></notextile> 1d v1.13.0 ...,kubernetes.io/hostname=worker0
# worker1 Ready <notextile><none></notextile> 1d v1.13.0 ...,kubernetes.io/hostname=worker1
# worker2 Ready <notextile><none></notextile> 1d v1.13.0 ...,kubernetes.io/hostname=worker2
# kubectl label nodes $NODE_NAME $LABLE=$NAME
kubectl lable nodes worker1 _lable=first_
kubectl get nodes --show-labels
# NAME STATUS ROLES AGE VERSION LABELS
# worker0 Ready <none> 1d v1.13.0 ...,kubernetes.io/hostname=worker0
# worker1 Ready <none> 1d v1.13.0 ..., *lable=first* kubernetes.io/hostname=worker1
# worker2 Ready <none> 1d v1.13.0 ...,kubernetes.io/hostname=worker2