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
demandé il y a un an5760 vues
2 réponses
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
répondu il y a un an
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
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a un an
profile pictureAWS
EXPERT
Tasio
vérifié il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions