Skip to main content

How does kube-proxy operate in IPVS mode vs iptables mode?

Mid Kubernetes
Quick Answer iptables mode: for each Service, kube-proxy adds chains of iptables rules that DNAT traffic. With many Services, traversing many chains per packet adds latency and CPU overhead. IPVS mode: uses the kernel's IPVS module (L4 load balancer) รขโ‚ฌโ€ lookup is O(1) via a hash table instead of O(n) through iptables chains. Much faster at 10,000+ Services.

Answer

IPVS uses kernel-level load balancing, faster for large clusters; iptables uses rule chains.
S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice