iptables is a utility in the user-space where a root user can configure a set of table rules for the Linux kernel firewall.
iptables allows users to control network traffic through the Linux firewall. Depending on the rules you set, traffic is directed to an end location based on criteria such as port or protocol.
In Kubernetes, network routing is managed by
kube-proxy, contrary to its name, is not a proxy. Instead,
kube-proxy generates iptable rules to control routing inside a Kubernetes cluster.