Question
List out all the iptables rules defined for ALL services running in the cluster. Save the output to /tmp/iptables-rules.txt
Answer
By default, kube-proxy uses iptables in the background to setup required rules.
These rules make it possible to route the requests to different services running in the Kubernetes cluster.
You can iptables-save command to save the rules and iptables-restore command to restore the backup of iptables rules:
iptables-save > /tmp/iptables-rules.txt