File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ kubectl wait -n kwasm --for=condition=Ready pod --selector=job-name=k3s-provisio
5555kubectl wait -n kwasm --for=jsonpath=' {.status.phase}' =Succeeded pod --selector=job-name=k3s-provision-kwasm --timeout=60s
5656
5757# Verify the SystemdCgroup is set to true
58- docker exec $NODE_NAME cat /etc/containerd/config.toml | grep -A5 " spin" | grep " SystemdCgroup = true"
58+ sudo cat /var/lib/rancher/k3s/agent/ etc/containerd/config.toml | grep -A2 " runtimes. spin.options " | grep " SystemdCgroup = true"
5959
6060if ! kubectl get pods -n kwasm | grep -q " k3s-provision-kwasm.*Completed" ; then
6161 echo " Node installer job failed!"
Original file line number Diff line number Diff line change 11#! /bin/bash
22set -euo pipefail
3+ shopt -s expand_aliases
34
45: ${IMAGE_NAME:= ghcr.io/ spinkube/ containerd-shim-spin/ node-installer: dev}
56
1213if ! microk8s status | grep -q " microk8s is running" ; then
1314 echo " Starting MicroK8s..."
1415 sudo microk8s start
15- sleep 10
1616else
1717 sudo microk8s reset
18- sleep 10
1918fi
2019
20+ sudo microk8s status --wait-ready
21+
2122sudo microk8s enable dns
2223
2324alias kubectl=' sudo microk8s kubectl'
@@ -63,7 +64,7 @@ kubectl wait -n kwasm --for=condition=Ready pod --selector=job-name=microk8s-pro
6364kubectl wait -n kwasm --for=jsonpath=' {.status.phase}' =Succeeded pod --selector=job-name=microk8s-provision-kwasm --timeout=60s
6465
6566# Verify the SystemdCgroup is set to true
66- docker exec $NODE_NAME cat /etc/containerd/config .toml | grep -A5 " spin" | grep " SystemdCgroup = true"
67+ cat /var/snap/microk8s/current/args/containerd .toml | grep -A5 " spin" | grep " SystemdCgroup = true"
6768
6869if ! kubectl get pods -n kwasm | grep -q " microk8s-provision-kwasm.*Completed" ; then
6970 echo " Node installer job failed!"
You can’t perform that action at this time.
0 commit comments