Skip to main content

What is the difference between kube-proxy iptables and IPVS modes under high traffic?

Senior Kubernetes
Quick Answer iptables mode programs a chain of rules per Service. With thousands of Services, each packet traverses potentially thousands of iptables rules sequentially รขโ‚ฌโ€ O(n) lookup. IPVS uses kernel-level hash tables for Service lookup รขโ‚ฌโ€ O(1) regardless of Service count. At 10,000+ Services, iptables mode causes measurable packet processing latency; IPVS does not.

Answer

iptables does linear rule matching; IPVS uses kernel hash tables for large-scale performance.
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