Missing multiport module - Installing K3S cluster fails

Which system do you use? Android, Ubuntu, OOWOW or others?

Ubuntu 22.04

Which version of system do you use? Khadas official images, self built images, or others?

Official Khadas vim4-ubuntu-22.04-server-linux-5.4-fenix-1.2-221018.img.xz

Please describe your issue below:

Installing K3S master fails with pod “svclb-traefik” stuck at ContainerCreating.

Post a console log of your issue below:

Syslog shows


Nov 12 16:11:24 localhost k3s[7390]: time="2022-11-12T16:11:24Z" level=error msg="Error adding pod kube-system/svclb-traefik-5651e14f-xjxsw to network {docker 84e795200c6a9356b0fd07752b391d497251ec34a933cc2d071daef62f560bf3}:/proc/10350/ns/net:flannel:cbr0: plugin type=\"portmap\" failed (add): unable to setup DNAT: running [/usr/sbin/iptables -t nat -C CNI-HOSTPORT-DNAT -m comment --comment dnat name: \"cbr0\" id: \"84e795200c6a9356b0fd07752b391d497251ec34a933cc2d071daef62f560bf3\" -m multiport -p tcp --destination-ports 80,443 -j CNI-DN-9fff5d0c9e854b19cfc5f --wait]: exit status 2: iptables v1.8.7 (nf_tables): Couldn't load match `multiport':No such file or directory\n\nTry `iptables -h' or 'iptables --help' for more information.\n"

Solution

You need to recompile kernel with the following parameter :
NETFILTER_XT_MATCH_MULTIPORT=y

Is it possible to add this for the next update ?

Yes, we will add it to next release. Thanks for your feedbcak.

1 Like