Skip to content

Commit 80ccbbb

Browse files
committed
kernel: enable ipset hash:netport set type
kube-router NetworkPolicy enforcement in k3s requires the netfilter ipset set types it creates at startup. The kernel config already enables ipset core, xt_set and most hash/bitmap set types as modules installed into the rootfs, but hash:netport was missing, causing `ipset save` to fail and kube-router to silently skip policy enforcement. Enable CONFIG_IP_SET_HASH_NETPORT=m and install the module into the rootfs image. Closes #792
1 parent 35a5ef5 commit 80ccbbb

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

os/yocto/layers/meta-dstack/recipes-core/images/dstack-rootfs-base.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ IMAGE_INSTALL = "\
5353
kernel-module-ip-set-hash-ipport \
5454
kernel-module-ip-set-hash-ipportip \
5555
kernel-module-ip-set-hash-ipportnet \
56+
kernel-module-ip-set-hash-netport \
5657
kernel-module-ip-set-hash-netiface \
5758
kernel-module-ip-set-bitmap-ip \
5859
kernel-module-ip-set-bitmap-port \

os/yocto/layers/meta-dstack/recipes-kernel/linux/files/dstack-docker.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ CONFIG_IP_SET_HASH_NET=m
5757
CONFIG_IP_SET_HASH_IPPORT=m
5858
CONFIG_IP_SET_HASH_IPPORTIP=m
5959
CONFIG_IP_SET_HASH_IPPORTNET=m
60+
CONFIG_IP_SET_HASH_NETPORT=m
6061
CONFIG_IP_SET_HASH_NETIFACE=m
6162
CONFIG_IP_SET_BITMAP_IP=m
6263
CONFIG_IP_SET_BITMAP_PORT=m

0 commit comments

Comments
 (0)