File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,16 @@ func (b *PackagesBuilder) Build(c *fi.NodeupModelBuilderContext) error {
4848 c .EnsureTask (& nodetasks.Package {Name : additionalPackage })
4949 }
5050 } else if b .Distribution .IsRHELFamily () {
51- if b .Distribution == distributions .DistributionAmazonLinux2023 {
51+ // RHEL 10+ doesn't support iptables anymore
52+ switch b .Distribution {
53+ case distributions .DistributionAmazonLinux2023 :
5254 // install iptables-nft in al2023 (NOT the iptables-legacy!)
5355 c .AddTask (& nodetasks.Package {Name : "iptables-nft" })
54- } else {
56+ case distributions .DistributionRhel8 , distributions .DistributionRhel9 ,
57+ distributions .DistributionRocky8 , distributions .DistributionAmazonLinux2 :
5558 c .AddTask (& nodetasks.Package {Name : "iptables" })
59+ default :
60+ c .AddTask (& nodetasks.Package {Name : "nftables" })
5661 }
5762 c .AddTask (& nodetasks.Package {Name : "libseccomp" })
5863 if b .NodeupConfig .KubeProxy != nil && fi .ValueOf (b .NodeupConfig .KubeProxy .Enabled ) && b .NodeupConfig .KubeProxy .ProxyMode == "nftables" {
You can’t perform that action at this time.
0 commit comments