Skip to content

Commit 3940478

Browse files
committed
Add nftables package
NFtables proxy mode is GA in Kubernetes 1.33. See: https://kubernetes.io/blog/2025/02/28/nftables-kube-proxy/ We ensure the nftables package is installed if the cluster is created if kube-proxy mode is `nftables`. Signed-off-by: Arnaud Meukam <[email protected]>
1 parent a8001b8 commit 3940478

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nodeup/pkg/model/packages.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ func (b *PackagesBuilder) Build(c *fi.NodeupModelBuilderContext) error {
5050
c.AddTask(&nodetasks.Package{Name: "libapparmor1"})
5151
c.AddTask(&nodetasks.Package{Name: "libseccomp2"})
5252
c.AddTask(&nodetasks.Package{Name: "libltdl7"})
53+
if b.NodeupConfig.KubeProxy != nil && fi.ValueOf(b.NodeupConfig.KubeProxy.Enabled) && b.NodeupConfig.KubeProxy.ProxyMode == "nftables" {
54+
c.AddTask(&nodetasks.Package{Name: "nftables"})
55+
}
5356
c.AddTask(&nodetasks.Package{Name: "pigz"})
5457
c.AddTask(&nodetasks.Package{Name: "socat"})
5558
c.AddTask(&nodetasks.Package{Name: "util-linux"})
@@ -70,6 +73,9 @@ func (b *PackagesBuilder) Build(c *fi.NodeupModelBuilderContext) error {
7073
}
7174
c.AddTask(&nodetasks.Package{Name: "libseccomp"})
7275
c.AddTask(&nodetasks.Package{Name: "libtool-ltdl"})
76+
if b.NodeupConfig.KubeProxy != nil && fi.ValueOf(b.NodeupConfig.KubeProxy.Enabled) && b.NodeupConfig.KubeProxy.ProxyMode == "nftables" {
77+
c.AddTask(&nodetasks.Package{Name: "nftables"})
78+
}
7379
c.AddTask(&nodetasks.Package{Name: "socat"})
7480
c.AddTask(&nodetasks.Package{Name: "util-linux"})
7581
// Handle some packages differently for each distro

0 commit comments

Comments
 (0)