Skip to content

Commit e513c36

Browse files
node-installer: fix K3S by linking shim to PATH
node-installer: fix symbolic link to path containing $NODE_ROOT node-installer: clearify containerd bug Co-authored-by: Kate Goldenring <[email protected]> Signed-off-by: Shiroki Satsuki <[email protected]>
1 parent 5bfc960 commit e513c36

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, so this statically links the kwasm installation to path
67+
# https://github.com/containerd/containerd/issues/11480
68+
mkdir -p $NODE_ROOT/usr/local/bin/
69+
ln -s $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)