<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Thanh Huy</title>
    <description>The latest articles on DEV Community by Thanh Huy (@nthuy25).</description>
    <link>https://dev.to/nthuy25</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4273228%2Fb5dd311a-2a38-45b8-96b6-dfee9f1f8514.png</url>
      <title>DEV Community: Thanh Huy</title>
      <link>https://dev.to/nthuy25</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nthuy25"/>
    <language>en</language>
    <item>
      <title>Why your EKS node shows 110 Pods when the formula says 234</title>
      <dc:creator>Thanh Huy</dc:creator>
      <pubDate>Mon, 30 Nov 2026 02:53:39 +0000</pubDate>
      <link>https://dev.to/nthuy25/why-your-eks-node-shows-110-pods-when-the-formula-says-234-49og</link>
      <guid>https://dev.to/nthuy25/why-your-eks-node-shows-110-pods-when-the-formula-says-234-49og</guid>
      <description>&lt;p&gt;You add an &lt;code&gt;m5.4xlarge&lt;/code&gt; to a managed node group, run &lt;code&gt;kubectl describe node&lt;/code&gt;, and see &lt;code&gt;pods: 110&lt;/code&gt;. The AWS documentation for the VPC CNI says the same instance supports 234. Both numbers are right; they come from two different rules.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rule 1: Pods need IP addresses
&lt;/h2&gt;

&lt;p&gt;With the Amazon VPC CNI, every Pod gets a real VPC address from one of the node's network interfaces (ENIs). The limit per node is therefore set by the instance's networking, not its CPU or memory:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;max Pods = ENIs × (IPs per ENI − 1) + 2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each ENI keeps one address for itself, hence the &lt;code&gt;− 1&lt;/code&gt;. The &lt;code&gt;+ 2&lt;/code&gt; is for the Pods that use the node's own address (the VPC CNI and kube-proxy run with host networking).&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Instance&lt;/th&gt;
&lt;th&gt;ENIs × IPs&lt;/th&gt;
&lt;th&gt;Formula&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;m5.large&lt;/td&gt;
&lt;td&gt;3 × 10&lt;/td&gt;
&lt;td&gt;29&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;m5.xlarge&lt;/td&gt;
&lt;td&gt;4 × 15&lt;/td&gt;
&lt;td&gt;58&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;m5.4xlarge&lt;/td&gt;
&lt;td&gt;8 × 30&lt;/td&gt;
&lt;td&gt;234&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;m5.16xlarge&lt;/td&gt;
&lt;td&gt;15 × 50&lt;/td&gt;
&lt;td&gt;737&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two consequences people trip over:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;More CPU does not mean more Pods.&lt;/strong&gt; &lt;code&gt;m5.xlarge&lt;/code&gt; and &lt;code&gt;m5.2xlarge&lt;/code&gt; both allow 58; &lt;code&gt;m5.4xlarge&lt;/code&gt;, &lt;code&gt;8xlarge&lt;/code&gt; and &lt;code&gt;12xlarge&lt;/code&gt; all allow 234.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Newer generations usually do not change it.&lt;/strong&gt; &lt;code&gt;m5&lt;/code&gt;, &lt;code&gt;m6i&lt;/code&gt; and &lt;code&gt;m7i&lt;/code&gt; allow the same number on every size they share; the generations differ in which sizes exist, not in the limit.
## Rule 2: managed node groups cap it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When a managed node group launches nodes without a custom AMI, EKS sets maxPods itself and caps it: &lt;strong&gt;110 below 30 vCPUs, 250 from 30 vCPUs&lt;/strong&gt;. The &lt;code&gt;m5.4xlarge&lt;/code&gt; has 16 vCPUs, so 234 becomes 110. The &lt;code&gt;m5.16xlarge&lt;/code&gt; (64 vCPUs) goes from 737 to 250. The cap wins over any other setting in that case.&lt;/p&gt;

&lt;p&gt;If you really need more Pods per node, use a launch template with a custom AMI (or self-managed nodes) and set maxPods yourself. Check first that you want to: 110 Pods on 16 vCPUs is already about 145m CPU per Pod.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prefix delegation
&lt;/h2&gt;

&lt;p&gt;With &lt;code&gt;ENABLE_PREFIX_DELEGATION=true&lt;/code&gt; (VPC CNI 1.9.0 or later, Nitro instances), each IP slot on an ENI holds a /28 prefix of 16 addresses instead of one address. An &lt;code&gt;m5.large&lt;/code&gt; goes from 29 to the 110 cap. It needs free contiguous /28 blocks in the subnet; a fragmented subnet fails with &lt;code&gt;InsufficientCidrBlocks&lt;/code&gt;. The managed node group cap still applies.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check what a node actually got
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl get nodes -o custom-columns=NAME:.metadata.name,TYPE:.metadata.labels.node\.kubernetes\.io/instance-type,PODS:.status.capacity.pods
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the number differs from the formula, either the cap applies or maxPods was set explicitly.&lt;/p&gt;

&lt;h2&gt;
  
  
  The numbers for every size
&lt;/h2&gt;

&lt;p&gt;I put the formula, the cap and prefix delegation into a calculator that reads AWS's own instance data, and a page with 13 common families (T, M, C, R; Intel, AMD and Graviton) side by side:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Calculator: &lt;a href="https://opspane.dev/kubernetes/eks-max-pods/" rel="noopener noreferrer"&gt;https://opspane.dev/kubernetes/eks-max-pods/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;All families: &lt;a href="https://opspane.dev/kubernetes/eks-max-pods/families/" rel="noopener noreferrer"&gt;https://opspane.dev/kubernetes/eks-max-pods/families/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both run in the browser. If you are also sizing the subnets for those Pods, &lt;a href="https://opspane.dev/network/vpc-subnet-planner/" rel="noopener noreferrer"&gt;https://opspane.dev/network/vpc-subnet-planner/&lt;/a&gt; does the address math per Availability Zone.&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>aws</category>
      <category>devops</category>
      <category>eks</category>
    </item>
  </channel>
</rss>
