K8s Node节点ROLES为<none>

 

添加label语法:

kubectl label nodes <node-name> <label-key>=<label-value> 

修改实例: 

kubectl label nodes k8s-node1.hikvision.com node-role.kubernetes.io/worker=worker

删除label语法:

kubectl label nodes <node-name> <label-key>-

删除实例: 

kubectl label nodes k8s-node1.hikvision.com node-role.kubernetes.io/worker-

 

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐