roles : kubectl label nodes node-hostname node-role.kubernetes.io/master= 减号就是删除roles,等号就是增加roles
[root@k8s-master14 ~]# kubectl get node NAME STATUS ROLES AGE VERSION k8s-master12 Ready master 4h15m v1.15.1 k8s-master13 Ready <none> 13d v1.15.1 k8s-master14 Ready master 6h17m v1.15.1 k8s-node01 Ready <none> 13d v1.15.1 k8s-node02 Ready <none> 13d v1.15.1 #减号就是删除roles,等号就是增加roles [root@k8s-master14 ~]# kubectl label nodes k8s-master13 node-role.kubernetes.io/master= node/k8s-master13 labeled [root@k8s-master14 ~]# kubectl get node NAME STATUS ROLES AGE VERSION k8s-master12 Ready master 4h18m v1.15.1 k8s-master13 Ready master 13d v1.15.1 k8s-master14 Ready master 6h20m v1.15.1 k8s-node01 Ready <none> 13d v1.15.1 k8s-node02 Ready <none> 13d v1.15.1
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。