Skip to content

Commit 8a5a312

Browse files
authored
Update knative instructions (#220)
Signed-off-by: dievskiy <[email protected]>
1 parent 76e788c commit 8a5a312

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/develop/deploy/kubernetes/knative.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ $ sudo apt-mark hold kubelet kubeadm kubectl
9191
# create kubernetes cluster
9292
$ swapoff -a
9393
$ kubeadm init --pod-network-cidr=10.244.0.0/16 --cri-socket unix:///var/run/containerd/containerd.sock
94+
$ export KUBECONFIG=/etc/kubernetes/admin.conf
9495

9596
# install cni
9697
$ kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml
9798

9899
# untaint master node
99100
$ kubectl taint nodes --all node-role.kubernetes.io/control-plane-
100-
$ export KUBECONFIG=/etc/kubernetes/admin.conf
101101

102102
# add crun runtimeClass
103103
$ cat > runtime.yaml <<EOF
@@ -107,7 +107,7 @@ metadata:
107107
name: crun
108108
handler: crun
109109
EOF
110-
$ kubectl apply runtime.yaml
110+
$ kubectl apply -f runtime.yaml
111111

112112
# Verify if the configuration works
113113
$ kubectl run -it --rm --restart=Never wasi-demo --image=wasmedge/example-wasi:latest --annotations="module.wasm.image/variant=compat-smart" --overrides='{"kind":"Pod", "apiVersion":"v1", "spec": {"hostNetwork": true, "runtimeClassName": "crun"}}' /wasi_example_main.wasm 50000000
@@ -179,7 +179,7 @@ spec:
179179
port: 1234
180180
EOF
181181

182-
$ kubectl apply http-wasm-serverless.yaml
182+
$ kubectl apply -f http-wasm-serverless.yaml
183183

184184
# wait for a while, and check if the serverless service is available
185185
$ kubectl get ksvc http-wasm

0 commit comments

Comments
 (0)