How to delete a node label by command and api?

后端 未结 11 2212
被撕碎了的回忆
被撕碎了的回忆 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:59

    1. If you want to see existing labels for the nodes kubectl get nodes --show-labels
    2. Then, list the key_name and node_name you want to modify
    3. Then, kubectl label node node_name key_name-

提交回复
热议问题