• K8Snode的自定义状态信息


    [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
    
  • 相关阅读:
    如何查看ubuntu版本
    基于Python与命令行人脸识别项目(系列一)
    问题 B: Curriculum Vitae
    问题 M: 克隆玩具
    1906: 鹊桥相会
    3265: 聪明的矿工
    2363: 完美旗手队列
    2545: 内部收益率
    2544: 台球碰撞
    3272: 公民身份号码
  • 原文地址:https://www.cnblogs.com/Applogize/p/15161234.html
Copyright © 2020-2023  润新知