NetworkingLesson 1 of 8
- The pod network model, not reconciled
- Services, not reconciled
- EndpointSlices and kube-proxy, not reconciled
- Following a packet through the node, not reconciled
- Cluster DNS with CoreDNS, not reconciled
- Gateway API and the frozen Ingress API, not reconciled
- NetworkPolicies, not reconciled
- gRPC, service mesh and mTLS, not reconciled
The pod network model
Every pod gets its own IP and reaches every other pod without NAT. Learn what a CNI plugin does when a pod starts, how packets cross nodes, and which ranges pods, Services and nodes draw from.
Shows the lesson one block at a time. Arrow keys step, number keys jump to a scene, and Escape returns to the page where you were.
Reconcile, in 7 scenes
The model
Kubernetes does not ship a network. It specifies one, and leaves the wiring to a plugin. The specification fits in three rules:
- Every pod gets its own IP address, unique across the cluster.
- Every pod can reach every other pod, on the same node or on another one, directly, without proxies or address translation. Network policies can narrow that on purpose; nothing else may.
- Agents on a node, such as the kubelet and system daemons, can reach every pod on that node.
Together these define the pod networkThe network that carries traffic between pods. Kubernetes specifies its rules; a network plugin implements them.. The rules exist to make a pod look like a small host. Your application listens on port 8080 in every replica, because each replica has its own address and its own port space. Nobody maps container ports to host ports, and an address a pod sees on the wire is the address of the peer that sent it.
The rules also rule things out: a plugin that masquerades pod-to-pod traffic behind node addresses breaks the model. Address translation belongs at the edges. A pod that calls another pod through a Service’s cluster IP still shows its own address, because only the destination is rewritten. Source NAT applies to traffic leaving the cluster network, which is usually masqueraded behind the node address, to node port and load balancer traffic under externalTrafficPolicy: Cluster, and to hairpin traffic, where a pod reaches itself through its own Service.
Kubernetes implements few of these pieces itself. The network plugin builds the pod network and usually enforces NetworkPolicy, a service proxy such as kube-proxy turns Services and their EndpointSlices into packet rules, and CoreDNS gives Services names. Kubernetes owns the API those components read. EndpointSlices, GA since 1.21, list each Service’s pods; v1 Endpoints has been deprecated since 1.33.
Pod addresses are not stable: a replacement pod gets a different IP, so nothing should be configured with one. Services exist to fix that.
Inside a pod
A pod’s containers share one network namespace, which belongs to the pod sandbox rather than to any container. That is why containers in a pod reach each other on localhost, why two of them cannot bind the same port, and why a container that restarts keeps the pod’s IP: the sandbox outlives it.
Inside the namespace there are two interfaces. lo is the loopback, which the runtime must provide; it usually does so with the CNI loopback plugin. eth0 carries the pod’s address, and with most plugins it is one end of a veth pair whose other end sits in the node’s own namespace. A veth pair behaves like a cable: a packet written into one end comes out of the other. Everything the pod sends crosses that cable into the node, and the node’s routing decides what happens next.
Open the x-ray on client at the network layer: its eth0, the veth that joins it to the node, and the route that brings packets back.
ExplainerThe Linux under a pod
Six layers sit under this pod. Press X-ray to lift them apart.
Networkon kx-worker3
docker exec kx-worker3 ip routedefault via 172.18.0.1 dev eth0 10.244.0.0/24 via 172.18.0.2 dev eth0 10.244.1.0/24 via 172.18.0.3 dev eth0 10.244.2.0/24 via 172.18.0.4 dev eth0 10.244.3.2 dev veth86a0321f scope host 10.244.3.3 dev vethf2213491 scope host 172.18.0.0/16 dev eth0 proto kernel scope link src 172.18.0.5
The only layer kubectl shows. Everything under it exists because the kubelet on kx-worker3 turned this object into calls to containerd: a sandbox, then a container for each entry in spec.containers.containerd starts the pause process first. It holds the network, UTS and IPC namespaces every container in the pod joins, so they share one IP, localhost and a hostname.The container is these processes: PID 1 inside it is pid 688 on the node. It has its own mount, PID and cgroup namespaces and joins the sandbox's others.With no limits.cpu, cpu.max is max 100000, no ceiling, and with no requests.cpu the kubelet gives it 2 shares, cpu.weight 1. With no limits.memory, memory.max is max: the fill is memory.current against the node's memory.kindnet's ptp plugin made a veth pair: eth0 inside the pod and veth86a0321f on the node, with a /32 route to 10.244.3.2 through it. kube-proxy's DNAT sends Service traffic down the same route.The root is an overlay of read-only image layers under one writable layer that goes when the container does. Volumes are bind mounts from the node's disk, or tmpfs for Secrets and the service account token.
A pod with hostNetwork: true skips all of this and runs in the node’s namespace, with the node’s address. Node agents use it: kube-proxy and the network plugin’s own DaemonSet configure the node and cannot depend on the pod network they build.
kubectl -n kube-system get pods -o wide --field-selector spec.nodeName=kx-control-plane
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES coredns-7dcd66b979-9xzmq 1/1 Running 0 45s 10.244.0.2 kx-control-plane <none> <none> coredns-7dcd66b979-fpcdz 1/1 Running 0 45s 10.244.0.3 kx-control-plane <none> <none> etcd-kx-control-plane 1/1 Running 0 45s 172.18.0.2 kx-control-plane <none> <none> kindnet-bw8z8 1/1 Running 0 45s 172.18.0.2 kx-control-plane <none> <none> kube-apiserver-kx-control-plane 1/1 Running 0 45s 172.18.0.2 kx-control-plane <none> <none> kube-controller-manager-kx-control-plane 1/1 Running 0 45s 172.18.0.2 kx-control-plane <none> <none> kube-proxy-hwskw 1/1 Running 0 45s 172.18.0.2 kx-control-plane <none> <none> kube-scheduler-kx-control-plane 1/1 Running 0 45s 172.18.0.2 kx-control-plane <none> <none>
kubectl -n kube-system get pod kube-proxy-hwskw -o jsonpath='{.spec.hostNetwork}'
true
The two CoreDNS pods have pod addresses from the node’s range. Everything else on the control plane node reports 172.18.0.2, the node’s own address, because it runs in the host network.
What a CNI plugin does
The Container Network Interface (CNI)A specification for programs that attach a container’s network namespace to a network and release it again. A runtime calls a plugin with ADD when a sandbox starts and DEL when it goes away. is the contract between the container runtime and the network plugin. Kubernetes requires a plugin compatible with version 0.4.0 or later of the CNI specification and recommends one compatible with 1.0.0.
Between the scheduler binding a pod and the pod getting an IP:
- The kubelet on the chosen node sees the pod and asks the container runtime, over CRI, to create a pod sandbox.
- The runtime, containerd or CRI-O, creates a network namespace and reads the plugin configuration from
/etc/cni/net.d. - It runs the plugin binary from
/opt/cni/binwith the ADD command, passing the namespace path, the container ID and the interface nameeth0. - The plugin creates the interface, moves one end into the namespace, and asks its IP address management (IPAM) step for an address. IPAM may hand out addresses from the node’s pod CIDR, as the
host-localplugin does, or ask a cloud API for one. - The plugin programs the node so packets for that address reach the pod, typically with a route or a bridge port, and returns the address to the runtime.
- The kubelet writes the address into the pod’s
status.podIP, and the containers start.
When the sandbox is deleted, the runtime calls DEL and the address goes back to the pool. A configuration file can chain plugins: kind’s chains ptp, which builds the veth pair and routes, with portmap, which implements hostPort. A bandwidth plugin in the chain enforces the bandwidth annotations.
Before Kubernetes 1.24, the kubelet could run CNI plugins itself through its --network-plugin and --cni-bin-dir flags. Those flags were removed in 1.24 together with dockershim, and plugin management belongs to the runtime.
Most plugins install as a DaemonSet in kube-system whose pod copies the binary and configuration onto the node and then keeps running as an agent that programs routes. Until that DaemonSet has run, the runtime reports NetworkReady=false with reason NetworkPluginNotReady, the node stays NotReady, and pods that need the pod network wait in Pending; on a fresh kubeadm cluster, CoreDNS is usually the first one you notice. A plugin that runs but fails, for example because its IP pool is exhausted, shows up in pod events as failed to setup network for sandbox followed by the plugin’s own error.
Same node
Two pods on one node talk through the node, and plugins differ in how it joins the host ends of the veth pairs.
- Bridged. The host end of every veth is attached to a Linux bridge, often called
cni0. The bridge switches frames between pods the way a physical switch would. The referencebridgeplugin and flannel work this way. - Routed. There is no bridge. The host end of each veth gets a /32 route to its pod’s address, and the node’s kernel routes between pods. kindnet, the plugin on
kx, works this way throughptp, as do Calico and the Amazon VPC CNI.
Either way, a packet from pod A to pod B leaves A’s eth0, comes out of the host end of A’s veth, is switched or routed onto B’s veth, and arrives at B’s eth0. It never leaves the node, and nothing rewrites its addresses.
Across nodes
A packet for a pod on another node also starts by crossing the veth into the source node. The source node then has to know which node owns the destination address, and the network between the nodes has to deliver the packet. There are two families of answers.
An overlay encapsulates. The source node wraps the pod packet in a UDP packet addressed from its own address to the destination node’s address, using VXLAN or Geneve, and the destination node unwraps it and routes it onto the pod’s veth. The network in between sees only node-to-node traffic, so an overlay works on any network that joins the nodes. It costs header bytes (VXLAN adds 50), so the pod MTU must be smaller than the node MTU, plus some CPU per packet, and it hides pod addresses from anything that inspects the underlying network. Flannel’s VXLAN backend and Cilium’s default tunnel mode are overlays.
Native routing sends pod packets unwrapped, so the network itself must route pod CIDRs. The plugin can install a route on each node to every other node’s pod range, which works when nodes share a layer 2 segment; it can announce pod ranges to routers over BGP, as Calico does; or the cloud can route pod addresses, either through route tables or by giving pods addresses from the VPC itself. There is no encapsulation overhead and pod addresses are visible on the network, which helps with flow logs and firewalls.
The nodes of kx share one Docker network, so kindnet uses the simplest form of native routing: each node gets a route to every other node’s pod CIDR through that node’s address.
kubectl get nodes -o custom-columns=NAME:.metadata.name,INTERNAL-IP:.status.addresses[0].address,POD-CIDR:.spec.podCIDR
NAME INTERNAL-IP POD-CIDR kx-control-plane 172.18.0.2 10.244.0.0/24 kx-worker 172.18.0.3 10.244.1.0/24 kx-worker2 172.18.0.4 10.244.2.0/24 kx-worker3 172.18.0.5 10.244.3.0/24
kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES client 1/1 Running 0 15s 10.244.3.2 kx-worker3 <none> <none> echo-866f4cbd59-dq87d 1/1 Running 0 15s 10.244.3.3 kx-worker3 <none> <none> echo-866f4cbd59-nshlv 1/1 Running 0 15s 10.244.2.2 kx-worker2 <none> <none> echo-866f4cbd59-pggpj 1/1 Running 0 15s 10.244.1.3 kx-worker <none> <none>
kubectl exec client -- curl -s 10.244.2.2
Hostname: echo-866f4cbd59-nshlv IP: 127.0.0.1 IP: ::1 IP: 10.244.2.2 RemoteAddr: 10.244.3.2:40045 GET / HTTP/1.1 Host: 10.244.2.2 User-Agent: curl/8.14.1 Accept: */*
Every pod address sits inside its node’s range. The request went from kx-worker3 to kx-worker2, and the echo server reports RemoteAddr: 10.244.3.2, the client pod’s own address: no NAT on the way. This lesson’s cluster runs the workload:
apiVersion: apps/v1
kind: Deployment
metadata:
name: echo
spec:
replicas: 3
selector:
matchLabels:
app: echo
template:
metadata:
labels:
app: echo
spec:
containers:
- name: whoami
image: traefik/whoami:v1.12
ports:
- containerPort: 80
---
apiVersion: v1
kind: Pod
metadata:
name: client
spec:
containers:
- name: shell
image: nicolaka/netshoot:v0.16
command: ["sleep", "infinity"]
Address ranges
A cluster draws addresses from three ranges that must not overlap, and three different components own them:
- The pod CIDR, also called the cluster CIDR, belongs to the network plugin. Often the controller manager splits it: with
--allocate-node-cidrsand--cluster-cidr, it carves a /24 per node by default (a /64 for IPv6) and writes it to each Node’sspec.podCIDR. Plugins with their own IPAM, such as Calico or the VPC CNI, can ignore that field. - The Service CIDR belongs to the API server, which allocates cluster IPs from it. The first address goes to the
kubernetesService, and kubeadm and kind put cluster DNS at the tenth. These addresses are on no interface at all; the Services lessons show what answers for them. - The node network is where nodes live. The kubelet’s
--node-ipor the cloud controller manager sets each node’s address.
ServiceCIDRAn API object in networking.k8s.io/v1 that holds a range the API server can allocate cluster IPs from. Stable since Kubernetes 1.33; the default object is named kubernetes. objects hold the Service ranges in Kubernetes 1.33 and later. The control plane creates the default one from --service-cluster-ip-range, and every allocated cluster IP has a matching IPAddress object. When the range runs out, you add a second ServiceCIDR object instead of rebuilding the cluster with a bigger flag.
kubectl -n kube-system get pod kube-controller-manager-kx-control-plane -o yaml | grep cluster-cidr
- --cluster-cidr=10.244.0.0/16
kubectl -n kube-system get pod kube-apiserver-kx-control-plane -o yaml | grep service-cluster-ip-range
- --service-cluster-ip-range=10.96.0.0/16
kubectl get service kubernetes
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 45s
kubectl get nodes -o wide
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME kx-control-plane Ready control-plane 45s v1.37.0 172.18.0.2 <none> Debian GNU/Linux 13 (trixie) 6.12.54-linuxkit (amd64) containerd://2.3.4 kx-worker Ready <none> 40s v1.37.0 172.18.0.3 <none> Debian GNU/Linux 13 (trixie) 6.12.54-linuxkit (amd64) containerd://2.3.4 kx-worker2 Ready <none> 40s v1.37.0 172.18.0.4 <none> Debian GNU/Linux 13 (trixie) 6.12.54-linuxkit (amd64) containerd://2.3.4 kx-worker3 Ready <none> 40s v1.37.0 172.18.0.5 <none> Debian GNU/Linux 13 (trixie) 6.12.54-linuxkit (amd64) containerd://2.3.4
On kx the pods use 10.244.0.0/16, Services 10.96.0.0/16, and nodes the Docker network’s 172.18.0.0/16.
Dual-stack networking, stable since 1.23, gives each pod one IPv4 and one IPv6 address. It needs paired ranges on the API server, controller manager and kube-proxy, both node addresses on the kubelet, and a plugin that supports it. Each Service chooses with ipFamilyPolicy: SingleStack is the default, and PreferDualStack or RequireDualStack give it a cluster IP from each family.
Choosing a CNI
The plugin is hard to change on a running cluster, because every pod’s address and every node’s routes come from it. Compare plugins on:
- Addressing. Overlay, routed or cloud-native. Overlays work anywhere; native routing needs a network that can carry pod routes; cloud-native addressing spends VPC addresses on pods.
- NetworkPolicy. NetworkPolicy objects are inert unless the plugin enforces them, and the API server accepts them either way. Calico and Cilium enforce them; flannel does not. kind’s default networking enforces them from kind v0.24.0, through the kube-network-policies project.
- Service handling. By default kube-proxy turns Services into kernel rules on each node; the iptables, nftables or IPVS rules redirect each connection, and kube-proxy itself is not on the data path. Its userspace mode, which did proxy traffic, was removed in Kubernetes 1.26. On Linux, iptables is the default mode, nftables has been GA since 1.33 and scales better, and IPVS has been deprecated since 1.35. Cilium and Calico’s eBPF data plane can replace kube-proxy entirely.
- Observability. Cilium’s Hubble and Calico’s flow logs show per-pod flows and policy verdicts.
- Maintenance. Weave Net is a warning: Weaveworks shut down in February 2024 and archived the project on 2024-06-20, and only community forks remain. Check who maintains a plugin before you build on it.
kubectl --context kind-kx get nodes -o custom-columns=NAME:.metadata.name,INTERNAL-IP:.status.addresses[0].address,POD-CIDR:.spec.podCIDRdocker exec kx-worker cat /etc/cni/net.d/10-kindnet.conflistdocker exec kx-worker ip routekubectl --context kind-kx get servicecidrkubectl --context kind-kx get ipaddresskubectl --context kind-kx -n kube-system get pods -o wide
For your own kind cluster kx: copy a command and paste it into your terminal. Run in the simulator runs the same command in this page's simulated cluster instead; nothing on this page touches your machine. The route table on kx-worker shows one route per local pod through a veth, and one route to each other node's pod CIDR through that node's address. The ServiceCIDR named kubernetes mirrors the API server's flag.
Actual state
Check your understanding
Your first answer to each check is the one that counts. After a miss you can answer again; passing every check reconciles the lesson.
Lesson not yet reconciled
Desired: 4 objectives, 0 metReconciled: 4 of 4 objectives met
- State the Kubernetes network model, an IP address per pod and pod-to-pod traffic without NAT, and what it rules out. (not yet met)
- Explain what a CNI plugin does when a pod starts and what breaks when it is missing. (not yet met)
- Trace a packet between two pods on the same node and between pods on different nodes, with an overlay and with native routing. (not yet met)
- Identify a cluster's pod CIDR, Service CIDR and node network, and where each is configured. (not yet met)
Pass every check above to reconcile this lesson.
Every check has passed, so the desired state is met. First-try accuracy: 0 of 6. This lesson's review cards are in your queue.
Practice
Put this lesson to work on the simulated cluster. Everything runs in your browser, with nothing to install.
Changed since the notes
This lesson draws on an earlier set of study notes. Where the documentation contradicts a claim in them, qualifies it or has moved past it, the claim is listed here with the corrected statement and the source it was checked against.
Show 32 corrections
The notes saidWhen you run docker-compose up
CorrectedCompose V1 (
docker-compose) stopped receiving updates in July 2023. Usedocker compose up.The notes saidOverlay networks are primarily used with Docker Swarm
CorrectedMulti-host overlay networks still need Swarm mode, and standalone containers can join only if the network was created with
--attachable. Most multi-host container networking now runs on Kubernetes CNIs.The notes saidThe docker-iptables-reload command can restore Docker's expected rules
CorrectedDocker documents no such command, and its packet-filtering docs only say not to modify Docker's rules. Restarting dockerd recreates its chains, though that page doesn't say so.
Sourcedocs.docker.com/engine/network/packet-filtering-firewalls
The notes saidCompose expose controls which ports peers can reach
CorrectedContainers on the same user-defined network can reach every listening port of their peers.
exposeis documentation only.The notes saidWeave Net creates a mesh overlay network
CorrectedWeaveworks shut down in February 2024 and archived weaveworks/weave on 2024-06-20. Only community forks remain.
The notes saidThe Endpoints object (or EndpointSlice in newer clusters)
CorrectedEndpointSlice has been GA since v1.21 and is the primary API. v1 Endpoints is deprecated since v1.33.
The notes saidIPVS mode handles large numbers of services more efficiently
CorrectedIPVS is deprecated since v1.35. nftables (GA in v1.33) is the recommended scalable mode.
The notes saidVPC CNI doesn't enforce Network Policies; deploy Calico (three entries incl. self-contradiction)
CorrectedThe VPC CNI has enforced NetworkPolicy natively since v1.14 (August 2023), enabled with the enableNetworkPolicy add-on setting through an eBPF node agent. Current docs require v1.21+ for both standard and admin network policies.
Sourceaws.amazon.com/about-aws/whats-new/2023/08/amazon-vpc-cni-kubernetes-networkpolicy-enforcement
The notes saidThe source IP pods see is often the node's IP due to SNAT
CorrectedPod-to-ClusterIP traffic is redirected without rewriting the client IP. SNAT applies to NodePort and LoadBalancer traffic with externalTrafficPolicy: Cluster, to hairpin traffic, and to egress leaving the VPC.
The notes saidkube-proxy intercepts the connection and redirects it
CorrectedKernel iptables, nftables or IPVS rules do the redirecting, and kube-proxy only programs them. Userspace mode was removed in v1.26.
The notes saidVPC CNI doesn't enforce network policies; deploy Calico in policy-only mode (two entries)
CorrectedThe VPC CNI has enforced NetworkPolicy natively since v1.14 (August 2023), enabled with enableNetworkPolicy.
Sourcedocs.aws.amazon.com/eks/latest/userguide/cni-network-policy-configure.html
The notes saidFor Service type LoadBalancer, the controller creates Network Load Balancers by default
CorrectedThis holds only for new Services when the LBC v2.5+ service mutating webhook is on (it is by default). The webhook sets loadBalancerClass: service.k8s.aws/nlb. LBC NLBs are internal unless the aws-load-balancer-scheme annotation is internet-facing (internal has been the default since v2.2.0). Without the LBC, the legacy cloud provider creates Classic Load Balancers.
Sourcekubernetes-sigs.github.io/aws-load-balancer-controller/latest/guide/service/nlb
The notes saidPrefix delegation is a newer option
CorrectedPrefix delegation has been available since VPC CNI 1.9.0 (2021) and requires Nitro-based instances.
Sourcedocs.aws.amazon.com/eks/latest/userguide/cni-increase-ip-addresses-procedure.html
The notes saidIAM Roles for Service Accounts provides the LBC's permissions
CorrectedEKS Pod Identity also works and is AWS's recommended default. EKS Auto Mode needs no controller install at all.
Sourcedocs.aws.amazon.com/eks/latest/userguide/service-accounts.html
The notes saidThe annotation-driven model … dozens of other options
CorrectedLBC Gateway API support is GA per an AWS post dated 2026-03-06; the exact LBC version is unconfirmed. Ingress NGINX was retired in March 2026, and Kubernetes recommends migrating to Gateway API.
The notes saidCloudTrail and VPC Flow Logs capture traffic
CorrectedCloudTrail records AWS API calls, not traffic. Only VPC Flow Logs record traffic metadata.
Sourcedocs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-user-guide.html
The notes saidIP mode preserves client IP addresses naturally
CorrectedFor NLB IP-type target groups using TCP or TLS, client IP preservation is off by default; turn on preserve_client_ip.enabled or use proxy protocol v2. An ALB never preserves the L3 client IP; read X-Forwarded-For instead.
Sourcedocs.aws.amazon.com/elasticloadbalancing/latest/network/edit-target-group-attributes.html
The notes saidInstance mode loses the client IP
CorrectedThe NLB preserves the client IP for instance targets by default. The IP is lost to kube-proxy SNAT when externalTrafficPolicy is Cluster; use Local to keep it.
Sourcekubernetes-sigs.github.io/aws-load-balancer-controller/latest/guide/service/nlb
The notes saidPods in public subnets use their ENI's public IP
CorrectedPod secondary IPs never get public IPs. For traffic leaving the VPC, the CNI SNATs the Pod IP to the node's primary private IP (AWS_VPC_K8S_CNI_EXTERNALSNAT=false).
Sourcedocs.aws.amazon.com/eks/latest/userguide/external-snat.html
The notes saidSame-node pod communication goes over the node's internal bridge
CorrectedThe VPC CNI gives each Pod a veth pair with a /32 host route and uses no Linux bridge.
Sourcegithub.com/aws/amazon-vpc-cni-k8s/blob/master/docs/cni-proposal.md
The notes saidt3.micro pod limit: '2 ENIs with 2 IPs each, about 4 pods'
CorrectedThe number 4 is right but the derivation is not. Max pods = ENIs x (IPs per ENI - 1) + 2 = 2 x 1 + 2 = 4.
Sourcedocs.aws.amazon.com/eks/latest/best-practices/vpc-cni.html
The notes saidEach NAT gateway exists in a single Availability Zone
CorrectedTrue for zonal NAT gateways. Since Nov 2025, a regional NAT gateway (availability mode regional) expands across the VPC's AZs automatically as workloads appear, within up to 60 minutes. It doesn't support private NAT.
The notes saidEKS documentation recommends subnets with at least /24 CIDR blocks, and /19 or larger for large clusters (attribution to EKS docs; grouped)
CorrectedEKS requires at least 6 free IP addresses in each cluster subnet (16 recommended), and EKS best practices recommend at least a /28 for cluster subnets. eksctl creates /19 subnets by default, which the best practices call suitable for most workloads. '/24 minimum' isn't EKS wording; present it as your own sizing advice.
The notes saidenableDnsHostnames (disabled by default)
CorrectedenableDnsHostnames defaults to false for VPCs you create but true for the default VPC; enableDnsSupport defaults to true.
Sourcedocs.aws.amazon.com/vpc/latest/userguide/AmazonDNS-concepts.html
The notes saidSecondary CIDR from 100.64.0.0/10 to relieve IP exhaustion
CorrectedValid, but EKS best practices also cover VPC CNI prefix delegation and IPv6 clusters as answers to IP exhaustion.
Sourcedocs.aws.amazon.com/eks/latest/best-practices/ip-opt.html
The notes saidNever mentions that EKS requires both enableDnsSupport and enableDnsHostnames = true
CorrectedConfirmed. EKS requires the VPC to have both DNS hostnames and DNS resolution enabled, or nodes can't register with the cluster; this also covers resolving a private cluster endpoint.
Sourcedocs.aws.amazon.com/eks/latest/userguide/network-reqs.html
The notes saidEach interface endpoint costs approximately $0.01 per hour per AZ plus $0.01 per GB; NAT gateway $0.045/GB
CorrectedInterface endpoints cost about $0.01 per AZ-hour (varies by Region) plus tiered data processing per Region: $0.01/GB for the first PB, $0.006/GB for the next 4 PB and $0.004/GB beyond 5 PB. NAT gateway is $0.045 per hour plus $0.045/GB processed in US East; a regional NAT gateway is billed $0.045 per hour for each AZ it spans.
Sourceaws.amazon.com/privatelink/pricing/%20;%20https://aws.amazon.com/vpc/pricing
The notes saidThe ECR API endpoint (ecr.region.amazonaws.com) (grouped: two note-56 claims)
CorrectedThe ECR API interface endpoint is com.amazonaws.<region>.ecr.api, whose DNS name is api.ecr.<region>.amazonaws.com. Image pulls also need com.amazonaws.<region>.ecr.dkr and the S3 gateway endpoint for layers.
Sourcedocs.aws.amazon.com/AmazonECR/latest/userguide/vpc-endpoints.html
The notes saidThe STS endpoint enables IRSA
CorrectedTrue for IRSA, which needs com.amazonaws.<region>.sts (and oidc-eks to set up IRSA from inside the VPC). EKS Pod Identity instead needs com.amazonaws.<region>.eks-auth.
Sourcedocs.aws.amazon.com/eks/latest/userguide/private-clusters.html
The notes saidGateway endpoints serve S3 and DynamoDB
CorrectedTrue; S3 and DynamoDB are the only services with gateway endpoints. Both also offer paid interface endpoints, which you need for access from on-premises or peered networks.
Sourcedocs.aws.amazon.com/amazondynamodb/latest/developerguide/privatelink-interface-endpoints.html
The notes saidList of essential endpoints for EKS
CorrectedThe EKS private-cluster guide lists: ec2; ecr.api, ecr.dkr and s3; elasticloadbalancing; xray (optional); ssm (optional); logs; sts (IRSA); oidc-eks (IRSA setup); eks-auth (Pod Identity); eks; and route53. Add endpoints for any other AWS APIs your add-ons call, such as autoscaling for Cluster Autoscaler.
Sourcedocs.aws.amazon.com/eks/latest/userguide/private-clusters.html
The notes said'The EKS endpoint … enables the kubelet to communicate with the EKS control plane'
CorrectedConfirmed. Kubelets reach the Kubernetes API through the cluster endpoint; with private endpoint access, that is EKS-managed network interfaces in your VPC, resolved through a Route 53 private hosted zone. The com.amazonaws.<region>.eks interface endpoint serves the EKS management API (DescribeCluster and similar). In a private cluster, nodes register only when cluster endpoint private access is on.
Every correction across the guide, by note and topic.
Sources
Checked against kubernetes.io and AWS documentation for Kubernetes 1.37 on .
- kubernetes.io/docs/concepts/services-networking
- kubernetes.io/docs/concepts/cluster-administration/networking
- kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins
- kubernetes.io/docs/tasks/network/extend-service-ip-ranges
- kubernetes.io/docs/concepts/services-networking/dual-stack
- kubernetes.io/docs/reference/networking/virtual-ips
- kind.sigs.k8s.io/docs/user/configuration
- docs.aws.amazon.com/eks/latest/best-practices/vpc-cni.html
- docs.aws.amazon.com/eks/latest/userguide/cni-increase-ip-addresses.html
- docs.aws.amazon.com/eks/latest/userguide/security-groups-for-pods.html
- docs.aws.amazon.com/eks/latest/userguide/external-snat.html
- docs.aws.amazon.com/eks/latest/userguide/private-clusters.html
- docs.aws.amazon.com/eks/latest/userguide/cni-network-policy-configure.html
- docs.aws.amazon.com/eks/latest/userguide/network-load-balancing.html
- kubernetes-sigs.github.io/aws-load-balancer-controller/latest/guide/service/nlb
The pod network model
↓ ↑ step, 1 to 7 scene, Esc leave