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
질문됨 일 년 전6031회 조회
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
답변함 일 년 전
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
지원 엔지니어
답변함 일 년 전
profile pictureAWS
전문가
Tasio
검토됨 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠