Add Iptables rule to the Kubernetes nodes

I am trying to restrict SSH to my kubernetes nodes by adding some iptables rules, but it seems that iptables rules are managed by kube-proxy. In my test after adding some rules to the INPUT chain, rules were gone after node reboot. How can i add my own rules that will persist through reboot.

I think using iptables-persistent will conflict with kube-proxy, so i don’t think that is an option.

Hello Hamed,

I am researching the same.
Did you find a solution?
It is really difficult to find something useful.

Regards Hans