k8s 命令
作者:互联网
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
标签:node,13d,v1.15,命令,master,Ready,k8s 来源: https://www.cnblogs.com/hanxing/p/16123414.html