Pod limit on Node – AWS EKS
Gần đây mình có 1 bất ngờ khi 1 pod của mình thông báo event:
0/3 nodes are available: 1 Too many pods, 2 node(s) didn't match Pod's node affinity/selector
Mình đã tìm hiểu ra là số pod trên node của eks sẽ bị giới hạn.
The formula for defining the maximum number of pods per instance is as follows:
N * (M-1) + 2
Where:
- N is the number of Elastic Network Interfaces (ENI) of the instance type
- M is the number of IP addresses of a single ENI
So, for t3.small, this calculation is 3 * (4-1) + 2 = 11
.
Values for N
and M
for each instance type in this document.
bạn có thể tham khảo chi tiết ở đây:
https://github.com/awslabs/amazon-eks-ami/blob/master/files/eni-max-pods.txt