Proxy (kube-proxy)
The proxy handles the routing between a pod load balancer (also known as a service) and pods. It also provides routing from external internet to services. There are three proxy modes: userspace, iptables, and ipvs. The userspace mode creates a large overhead by switching the kernel space and user space. The iptables mode, on the other hand, is the latest default proxy mode. It changes the iptables Network Address Translation (NAT: https://en.wikipedia.org/wiki/Network_address_translation) in Linux to achieve routing TCP and UDP packets across all containers. IP Virtual Servers (IPVS) was general available (GA) in Kubernetes 1.11 and is used to address performance degradations when running 1,000+ services in a cluster. It ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access