You can list the existing iptables rule along with their line number with:
iptables -L –line-numbers
The output will be as follows:
Chain INPUT (policy ACCEPT) num target prot opt source destination 1 KUBE-SERVICES all -- anywhere anywhere /* kubernetes service portals */ 2 KUBE-FIREWALL all -- anywhere anywhere 3 ACCEPT udp -- anywhere anywhere udp dpt:domain 4 ACCEPT tcp -- anywhere anywhere tcp dpt:domain 5 ACCEPT udp -- anywhere anywhere udp dpt:bootps 6 ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
Then you can delete the rule with the line-number 3 with:
iptables -D INPUT 3