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.
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!
- Accepted Answerasked 2 years ago
- Accepted Answerasked 3 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
- EXPERTpublished 3 months ago
- EXPERTpublished 2 months ago