码迷,mamicode.com
首页 > 其他好文 > 详细

计算eks node 中pod数量

时间:2021-01-08 11:41:16      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:config   run   and   number   blank   ack   arc   spec   using   

计算eks node 中pod数量 计算公式:((IP数I - 1) * ENI数) + 2
实例规格等ENI数和IP的对应关系,请参考
https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/using-eni.html#AvailableIpPerENI

技术图片

以下这段来自:https://www.stackrox.com/post/2020/10/eks-vs-gke-vs-aks/

标题是EKS vs GKE vs AKS - Evaluating Kubernetes in the Cloud

In AKS, the absolute maximum number of nodes that a cluster can have depends on a few configurations, including whether the node is in a VM State Set or Availability Set, and whether cluster networking uses kubenet or the Azure CNI. Even then, it is still unclear which number takes absolute precedence for specific configurations.

Meanwhile, in EKS, planning for the maximum number of pods scheduled on a Linux node requires some research and math. EKS clusters use the AWS VPC CNI for cluster networking. This CNI puts the pods directly on the VPC network by using ENIs (Elastic Network Interfaces), virtual network devices attached to EC2 instances. Different EC2 instance types support both a different number of ENIs and different IP addresses (one is needed per pod) per ENI.Therefore, to determine how many pods a particular EC2 instance type can run in an EKS cluster, you would get the values from this table and plug them into this formula: ((# of IPs per Elastic Network Interface - 1) * # of ENIs) + 2. A c5.12xlarge EC2 instance, which can support 8 ENIs with 30 IPv4 addresses each, can therefore accommodate up to ((30 - 1) * 8) + 2 = 234 pods. Note that large nodes with the maximum number of scheduled pods will eat up the /16 IPv4 CIDR block of the cluster’s VPC very quickly. Pod limits for Windows nodes in EKS are easier to compute and much more lower. Here, use the formula # of IP addresses per ENI - 1. The same c5.12xlarge instance could run as many as 234 pods as a Linux node could only run 29 pods as a Windows node.

计算eks node 中pod数量

标签:config   run   and   number   blank   ack   arc   spec   using   

原文地址:https://www.cnblogs.com/faberbeta/p/14245473.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!