简体   繁体   English

kube.netes - 为什么每个节点有最大 pod?

[英]kubernetes - Why is there a max pods per node?

Why is there a pod limit in Kube.netes?为什么 Kube.netes 中有 pod 限制?

It makes intuitive sense to me that there'll be some limitation, but I'm curious to know the specific botteleneck which warrants the limit.对我来说直觉上会有一些限制,但我很想知道保证限制的特定瓶颈。

The default limit of 110 pods per node is merely a compromise of Kube.netes, I think, not a technical limit.我认为每个节点 110 个 pod 的默认限制只是 Kube.netes 的妥协,而不是技术限制。

Some vendors have additional limitations.一些供应商有额外的限制。

For example, on Azure, there's a limit on the number of IP addresses you can assign to a node.例如,在 Azure 上,您可以分配给一个节点的 IP 地址数量是有限制的。 So if your Kube.netes cluster is configured to assign a IP address from Azure VNet to each pod, the limit is 30 (See https://learn.microsoft.com/en-us/azure/aks/configure-azure-cni#maximum-pods-per-node ).因此,如果您的 Kube.netes 集群配置为从 Azure VNet 向每个 pod 分配 IP 地址,则限制为 30(请参阅https://learn.microsoft.com/en-us/azure/aks/configure-azure-cni #maximum-pods-per-node )。

On IBM Cloud, if you use IBM Block Storage for persistent volumes, they will be mounted as 'Secondary volumes' on your node, and you can only have 12 of those per node, so that's limit of 12 pods with persistent volumes.在 IBM Cloud 上,如果您将 IBM Block Storage 用于持久卷,它们将作为“辅助卷”安装在您的节点上,并且每个节点只能有 12 个,因此限制为 12 个具有持久卷的 pod。 It sucks when you hit that limit when scaling up the first time:-( On other vendors or with other storage classes, this limit is larger: https://kube.netes.io/docs/concepts/storage/storage-limits/当您第一次扩展时达到该限制时,它很糟糕:-( 在其他供应商或其他存储类中,此限制更大: https://kube.netes.io/docs/concepts/storage/storage-limits/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM