[root@k8s-matser01 ~]# kubectl get node
NAME STATUS ROLES AGE VERSION
k8s-matser01 Ready,SchedulingDisabled control-plane,master 103d v1.20.2
k8s-work01 Ready <none> 103d v1.20.2
k8s-work02 Ready <none> 103d v1.20.2
[root@k8s-matser01 ~]# kubectl uncordon k8s-matser01
node/k8s-matser01 uncordoned
[root@k8s-matser01 ~]# kubectl get pod
No resources found in default namespace.
[root@k8s-matser01 ~]# kubectl get node
NAME STATUS ROLES AGE VERSION
k8s-matser01 Ready control-plane,master 103d v1.20.2
k8s-work01 Ready <none> 103d v1.20.2
k8s-work02 Ready <none> 103d v1.20.2
[root@k8s-matser01 ~]# kubectl label nodes k8s-matser01 node-role.kubernetes.io/control-plane-
node/k8s-matser01 labeled
[root@k8s-matser01 ~]#
[root@k8s-matser01 ~]# kubectl get node
NAME STATUS ROLES AGE VERSION
k8s-matser01 Ready master 103d v1.20.2
k8s-work01 Ready <none> 103d v1.20.2
k8s-work02 Ready <none> 103d v1.20.2
K8Snode的自定义状态信息