How to delete a node label by command and api?

后端 未结 11 2425
被撕碎了的回忆
被撕碎了的回忆 2021-02-01 00:31

Add label to nodes:

$ kubectl label nodes 10.xx.xx.xx key1=val1 

If I want to delete label(key1=val1) on node(10.xx.xx.xx), how

11条回答
  •  眼角桃花
    2021-02-01 00:55

    You can remove label this way

    kubectl label nodes  key1- key2-
    
    eg: kubectl label nodes ip-172-20-22-247 key1- key2-
    

提交回复
热议问题