Can't initialize iptables table filter and nat: Permission denied
The best solution will be to change the container image to have an updated iptables version, but in case you can't do that, follow the next steps.
Environment
- Red Hat OpenShift Container Platform 4.6+
Issue
Executing iptables command in an application container fails with the following error.
[root@pod]# iptables -L iptables v1.8.4 (legacy): can't initialize iptables table `filter': Permission denied Perhaps iptables or your kernel needs to be upgraded.