打标签
kubectl label nodes <node-name> <label-key>=<label-value>
kubectl label node node62 role=haproxy-ingress
删除标签注意后的扛-
kubectl label nodes <node-name> <label-key>-
[root@master66 haproxy]# kubectl label nodes node62 role-
node/node62 labeled
[root@master66 haproxy]# kubectl label nodes node63 role-
node/node63 labeled
修改Label的值
语法: 需要加上–overwrite参数
kubectl label nodes <node-name> <label-key>=<label-value> --overwrite