Skip to content

Commit 0da970a

Browse files
committed
node-installer: update runtime_type specifically for k3s
Signed-off-by: Jiaxiao (mossaka) Zhou <[email protected]>
1 parent 32e4368 commit 0da970a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

node-installer/script/installer.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ if ! grep -q spin $NODE_ROOT$CONTAINERD_CONF; then
4646
rm -Rf $NODE_ROOT$KWASM_DIR/active
4747
fi
4848

49+
if $IS_K3S; then
50+
sed -i "s|runtime_type = \"io.containerd.spin.*\"|runtime_type = \"$KWASM_DIR/bin/containerd-shim-spin-v2\"|g" $NODE_ROOT$CONTAINERD_CONF
51+
fi
52+
4953
if [ ! -f $NODE_ROOT$KWASM_DIR/active ]; then
5054
touch $NODE_ROOT$KWASM_DIR/active
5155
if $IS_MICROK8S; then

0 commit comments

Comments
 (0)