pod will not start due to “No nodes are available that match all of the following predicates:: Insufficient cpu”

前端 未结 3 628
伪装坚强ぢ
伪装坚强ぢ 2021-02-13 21:12

I\'m not sure why I\'m getting an error No nodes are available that match all of the following predicates:: Insufficient cpu (1).

I don\'t recall setting a

3条回答
  •  你的背包
    2021-02-13 21:53

    There are additional containers running besides the ones specified in the config. These are provisioned by default with Kubernetes and run in the kube-system namespace which are not shown in the default namespace.

    You can view all the pods by kubectl get pods --all-namespaces.

    These additional containers are taking up 72% of the CPU quota of the single node...

    Hence the 3 containers at 10% cpu quota would exceed 100% of the CPU quota (because 72% + (3 * 10) > 100%)...

    As to why 72% of the containers is being allocated to the other containers - the question is asked here: Why does a single node cluster only have a small percentage of the cpu quota available?

    Additional resources that may be usefull: How to reduce CPU limits of kubernetes system resources?


    However, I was able to get the containers to run with sufficient CPU by adding additional nodes to the cluster. In addition, the high cpu instances seem to be more efficiently allocated on Google Cloud.

提交回复
热议问题