zoukankan      html  css  js  c++  java
  • k8s集群管理注意要点【持续更新】

    1.编写pod yaml文件时绑定调度标签,必须要给指定节点绑定标签,否则无法调度到指定节点上,报错:

    Events:
      Type     Reason            Age                From               Message
      ----     ------            ----               ----               -------
      Warning  FailedScheduling  62s (x2 over 62s)  default-scheduler  0/2 nodes are available: 1 node(s) didn't have free ports for the requested pod ports, 1 node(s) didn't match node selector.

    给节点绑定标签:

    kubectl label nodes NODE_NAME ingress-name=ingress-true
    kubectl label nodes NODE_NAME name=node02
    kubectl get nodes --show-labels 更新标签:kubectl label nodes NODE_NAME name=node00 --overwrite

    yaml文件指定调度标签:

        spec:
          hostNetwork: true
          serviceAccountName: nginx-ingress-serviceaccount
          nodeSelector:
            ingress-name: ingress-true
          containers:
            - name: nginx-ingress-controller
              image: lizhenliang/nginx-ingress-controller:0.20.0

    2.

  • 相关阅读:
    python条件判断之直接加数字
    pythontip题目解答
    twitter api取出的日期格式化
    MySQL Archive存储引擎
    Python Json序列化
    Python 装饰器
    Python 匿名函数
    Python 函数
    Python 字符编码
    Python 文件操作
  • 原文地址:https://www.cnblogs.com/chenjw-note/p/11176056.html
Copyright © 2011-2022 走看看