0:00 / 0:00
How Amazon VPC CNI for k8s works
Containers from the Couch
38K subscribers • 1 video on Hallway
- Recommended by 2 people: 2 in engineering communities.
- Presented by Justin Garrison
- Linked in the descriptionaws/amazon-vpc-cni-k8s
- Made by the vendor. The company whose product it covers made or sponsored it.
- May be out of date. The tools, versions or practices it shows have likely moved on.
Intermediate. Assumes working knowledge.
18K views3 years ago2 recommendations
Cloud and DevOpsKubernetesAWSNetworking and protocols
Justin Garrison explains how the Amazon VPC CNI uses Elastic Network Interfaces to assign IP addresses to Kubernetes pods in EKS.
How do Kubernetes pods get an IP address in EKS? @JustinGarrison explains how the VPC CNI uses Elastic Network Interfaces (ENI) to obtain an IP address and assign it to a pod in a cluster. github.com/aws/amazon-vpc-cni-k8s - Intro - What is a VPC? - How big are CIDRs - Scheduling a single pod - Other node limits - Prefix assignment - IPv6 - Custom config - Things to considerWhy it's here
2 people recommend thisWhat people say. Recommended as an excellent explanation of how pod networking and IP allocation work in Amazon EKS.
u/SomeGuyNamedPaulin r/kubernetes • Recommends
On “Running Out of IPs on EKS? Use Secondary CIDR + VPC CNI Plugin”
First, this video does a great job of explaining the situation: link to this video
But the answer is to enable prefix delegation https://docs.aws.amazon.com/eks/latest/userguide/cni-increase-ip-addresses.html but you'll probably notice this official document is nearly worthless and only serves to frustrate people.
Looking at my standard CDK code I've got the VpcCniAddon with an envelope for ENABLE_PREFIX_DELEGATION="true". You can also do this with
kubectl set daemonset aws-node -n kube-system ENABLE_PREFIX_DELEGATION=true
But then you have to bounce crap and it's easier just to slip it into the IaC or at least the CNI Addon config
And for the userdata I create the file /etc/systemd/system/kubele…