[英]GKE node pool doesn't scale up
I have a GKE cluster which doesn't scale up when a particular deployment needs more resources.我有一个 GKE 集群,它在特定部署需要更多资源时无法扩展。 I've checked the cluster autoscaler logs and it has entries with this error:
no.scale.up.nap.pod.zonal.resources.exceeded
.我检查了集群自动缩放器日志,它有带有此错误的条目:
no.scale.up.nap.pod.zonal.resources.exceeded
。 The documentation for this error says:此错误的文档说:
Node auto-provisioning did not provision any node group for the Pod in this zone because doing so would violate resource limits.
节点自动配置没有为该区域中的 Pod 配置任何节点组,因为这样做会违反资源限制。
I don't quite understand which resource limits are mentiond in the documentation and why it prevents node-pool from scaling up?我不太明白文档中提到了哪些资源限制,以及为什么它会阻止节点池扩展?
If I scale cluster up manually - deployment pods are scaled up and everything works as expected, so, seems it's not a problem with project quotas.如果我手动扩展集群 - 部署 pod 被扩展并且一切都按预期工作,那么,项目配额似乎不是问题。
Limits for clusters that you define are enforced based on the total CPU and memory resources used across your cluster, not just auto-provisioned pools.您定义的集群限制是根据整个集群使用的总 CPU 和 memory 资源来实施的,而不仅仅是自动配置的池。
When you are not using node auto provisioning (NAP), disable node auto provisioning feature for the cluster.当您不使用节点自动配置 (NAP) 时,请禁用集群的节点自动配置功能。
When you are using NAP, then update the cluster wide resource limits defined in NAP for the cluster.当您使用 NAP 时,请更新在 NAP 中为集群定义的集群范围资源限制。
Try a workaround by specifying the machine type explicitly in the workload spec.通过在工作负载规范中明确指定机器类型来尝试解决方法。 Ensure to use a supported machine family with GKE node auto-provisioning
确保使用支持 GKE 节点自动配置的机器系列
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.