Skip to content

Commit ee66221

Browse files
committed
node-installer: fix K3S by linking shim to PATH
Signed-off-by: Shiroki Satsuki <[email protected]>
1 parent 6f15853 commit ee66221

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

node-installer/script/installer.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ mkdir -p $NODE_ROOT$KWASM_DIR/bin/
6363

6464
cp /assets/containerd-shim-spin-v2 $NODE_ROOT$KWASM_DIR/bin/
6565

66+
# A bug in containerd makes BinaryName not work with shim not in PATH
67+
# https://github.com/containerd/containerd/issues/11480
68+
mkdir -p $NODE_ROOT/usr/local/bin/
69+
ln -s $NODE_ROOT$KWASM_DIR/bin/containerd-shim-spin-v2 $NODE_ROOT/usr/local/bin/containerd-shim-spin
70+
6671
# K3S and RKE2 can detect spin shim themselves, no need to configure
6772
# https://github.com/k3s-io/k3s/pull/9519
6873
if ! ( $IS_K3S || $IS_RKE2_AGENT ) && ! grep -q spin $NODE_ROOT$CONTAINERD_CONF; then

0 commit comments

Comments
 (0)