Skip to content

Commit 73defa8

Browse files
committed
Add xt_comment, nf_tables and other iptables kernel modules for k3s support
Enable iptables comment match and nftables in the kernel config, and include the corresponding module packages in all rootfs images. These modules are required by Kubernetes kube-proxy (iptables mode) and modern iptables-nft backend. Without xt_comment, kube-proxy cannot create ClusterIP routing rules, breaking all pod networking.
1 parent 9be73ef commit 73defa8

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

meta-dstack/recipes-core/images/dstack-rootfs-base.inc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,26 @@ IMAGE_INSTALL = "\
2626
kernel-module-br-netfilter \
2727
kernel-module-xt-mark \
2828
kernel-module-xt-connmark \
29+
kernel-module-xt-comment \
30+
kernel-module-xt-multiport \
31+
kernel-module-xt-statistic \
32+
kernel-module-xt-redirect \
33+
kernel-module-xt-tcpmss \
34+
kernel-module-xt-ct \
35+
kernel-module-xt-log \
36+
kernel-module-xt-limit \
37+
kernel-module-nf-tables \
38+
kernel-module-nft-compat \
39+
kernel-module-nft-nat \
40+
kernel-module-nft-chain-nat \
41+
kernel-module-nft-masq \
42+
kernel-module-nft-redir \
43+
kernel-module-nft-ct \
44+
kernel-module-nft-log \
45+
kernel-module-nft-limit \
46+
kernel-module-nft-reject \
47+
kernel-module-nft-reject-inet \
48+
kernel-module-nft-hash \
2949
fuse3 \
3050
fuse3-utils \
3151
pigz \

meta-dstack/recipes-kernel/linux/files/dstack-docker.cfg

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
CONFIG_BRIDGE=m
22
CONFIG_BRIDGE_NETFILTER=m
33
CONFIG_NETFILTER_XT_MATCH_IPVS=m
4+
5+
# nf_tables support (needed by modern iptables-nft backend)
6+
CONFIG_NF_TABLES=m
7+
CONFIG_NF_TABLES_INET=y
8+
CONFIG_NF_TABLES_NETDEV=y
9+
CONFIG_NFT_COMPAT=m
10+
CONFIG_NFT_NAT=m
11+
CONFIG_NFT_MASQ=m
12+
CONFIG_NFT_REDIR=m
13+
CONFIG_NFT_CT=m
14+
CONFIG_NFT_LOG=m
15+
CONFIG_NFT_LIMIT=m
16+
CONFIG_NFT_REJECT=m
17+
CONFIG_NFT_REJECT_INET=m
18+
CONFIG_NFT_HASH=m
419
CONFIG_BPF_SYSCALL=y
520
CONFIG_IP_VS=m
621
CONFIG_SECCOMP=y

0 commit comments

Comments
 (0)