Rocky Linux 8 latest Z2JH not starting due to iptables error

I have just updated to latest Z2JH (2.0.0) to see if the error was gone, but not.

15:55 # kubectl logs -f -n jupyterhub-test jupyter-laville block-cloud-metadata 
modprobe: can't change directory to '/lib/modules': No such file or directory
iptables v1.8.8 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

The underlying nodes don’t have iptables module anymore , but rather nftables.

this is the node:

[root@ops-k1n43 ~]# iptables 
iptables v1.8.4 (nf_tables): no command specified
Try `iptables -h' or 'iptables --help' for more information.

I get the same issue on a similar environment (Rocky Linux 8 and latest stable helm chart). Cluster nodes was previously on RancherOS and it was working fine.
Did you find a solution?

I have just set it to false the blockWithIptables:

      name: jupyterhub/k8s-network-tools
      tag: '1.0.1'
      pullPolicy: ''
      pullSecrets: []
    # block set to true will append a privileged initContainer using the
    # iptables to block the sensitive metadata server at the provided ip.
    blockWithIptables: false
1 Like