K8Snode的自定义状态信息

时间:2021-08-19 14:47:50   收藏:0   阅读:13
[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

原文:https://www.cnblogs.com/Applogize/p/15161234.html

评论(0)
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!