File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 99
1010if ! microk8s status | grep -q " microk8s is running" ; then
1111 echo " Starting MicroK8s..."
12- microk8s start
12+ sudo microk8s start
1313 sleep 10
1414else
15- microk8s reset
15+ sudo microk8s reset
1616 sleep 10
1717fi
1818
19- microk8s enable dns
19+ sudo microk8s enable dns
2020
21- alias kubectl=' microk8s kubectl'
21+ alias kubectl=' sudo microk8s kubectl'
2222
2323echo " === Step 2: Create namespace and deploy RuntimeClass ==="
2424kubectl create namespace kwasm || true
4444
4545echo " Loading node installer image into MicroK8s..."
4646docker save ghcr.io/spinkube/containerd-shim-spin/node-installer:dev > node-installer.tar
47- microk8s ctr image import node-installer.tar
47+ sudo microk8s ctr image import node-installer.tar
4848rm node-installer.tar
4949
50- NODE_NAME=$( microk8s kubectl get nodes -o jsonpath=' {.items[0].metadata.name}' )
50+ NODE_NAME=$( kubectl get nodes -o jsonpath=' {.items[0].metadata.name}' )
5151cp kwasm-job.yml microk8s-kwasm-job.yml
5252sed -i " s/spin-test-control-plane-provision-kwasm/microk8s-provision-kwasm/g" microk8s-kwasm-job.yml
5353sed -i " s/spin-test-control-plane-provision-kwasm-dev/microk8s-provision-kwasm-dev/g" microk8s-kwasm-job.yml
@@ -79,7 +79,7 @@ echo "=== Step 5: Test the workload ==="
7979echo " Waiting for service to be ready..."
8080sleep 10
8181
82- microk8s enable ingress
82+ kubectl enable ingress
8383sleep 5
8484
8585echo " Testing workload with curl..."
You can’t perform that action at this time.
0 commit comments