Skip to content

Commit 70923e6

Browse files
committed
Fix running kube-proxy on AL2023 nodes
1 parent e566be3 commit 70923e6

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

pkg/nodebootstrap/al2023.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func newAL2023Bootstrapper(cfg *api.ClusterConfig, np api.NodePool, clusterDNS s
4949
cfg: cfg,
5050
nodePool: np,
5151
clusterDNS: clusterDNS,
52+
scripts: []string{assets.AL2023XTablesLock},
5253
}
5354
}
5455

pkg/nodebootstrap/assets/assets.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ var BootstrapHelperSh string
2020
//go:embed scripts/bootstrap.ubuntu.sh
2121
var BootstrapUbuntuSh string
2222

23+
// AL2023XTablesLock holds the contents for creating a lock file for AL2023 AMIs.
24+
//go:embed scripts/al2023-xtables.lock.sh
25+
var AL2023XTablesLock string
26+
27+
2328
// EfaAl2Sh holds the efa.al2.sh contents
2429
//
2530
//go:embed scripts/efa.al2.sh
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -o errexit
4+
set -o pipefail
5+
set -o nounset
6+
7+
touch /run/xtables.lock

0 commit comments

Comments
 (0)