Pods IP address in EKS worker nodes

0

Hi guy, I'm new for EKS and I have a question about IP address of pods in worker nodes. When I create an EKS cluster with some worker nodes then deploy a pod and do "kubectl get" command, I see each pod has its own IP address. I don't know how pods can get IP, do they use the IP of worker node. Any architecture or diagram can illustrate the IP allocation for pods. If you know how to answer my question, please help me. Thanks!

Steven
已提问 1 年前6100 查看次数
2 回答
0

If each pod has an IP from your VPC you are using the VPC-CNI networking mode. The EKS Best Practices guide has a lot of information about the different networking modes and diagrams for how the VPC-CNI works.

AWS
Noah_L
已回答 1 年前
0

Hello Steven,

When you create an EKS cluster, VPC CNI plugin is installed into your cluster and it provides networking for pods.

The VPC CNI allocates ENIs (Elastic Network Interfaces) to each worker node and uses the secondary IP range from each ENI for pod IP addresses.

The VPC CNI runs an IPAMD (IP Address Management Daemon) on every node which is responsible for maintaining a warm pool of IP addresses, and assigning IP addresses to the pods.

However, if you run a pod with hostNetwork: true, the pod will get the IP address of the host that it is running on.

Please go through this EKS Best Practices document for more information related to EKS networking.

Please leave a comment if you have any further questions. Thank you!

profile pictureAWS
支持工程师
已回答 1 年前
profile pictureAWS
专家
Tasio
已审核 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则