Skip to content

Commit 73cc3d8

Browse files
committed
update daemonset example
1 parent 414f3ac commit 73cc3d8

File tree

1 file changed

+23
-8
lines changed

1 file changed

+23
-8
lines changed

example/daemonset.yaml

+23-8
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,34 @@ spec:
2121
- name: node-root
2222
hostPath:
2323
path: /
24-
- name: entrypoint
25-
configMap:
26-
name: entrypoint
27-
defaultMode: 0744
24+
- name: assets
25+
emptyDir: {}
2826
initContainers:
29-
- image: ghcr.io/kwasm/kwasm-node-installer:main
30-
name: kwasm-initializer
27+
- image: busybox:latest
28+
name: shim-downloader
3129
env:
32-
- name: NODE_ROOT
33-
value: /mnt/node-root
30+
volumeMounts:
31+
- name: assets
32+
mountPath: /assets
33+
command: ["/bin/sh", "-c"]
34+
args:
35+
- |
36+
wget -O- https://github.com/deislabs/containerd-wasm-shims/releases/download/v0.9.1/containerd-wasm-shims-v1-lunatic-linux-$(uname -m).tar.gz | tar xzf - -C /assets;
37+
wget -O- https://github.com/deislabs/containerd-wasm-shims/releases/download/v0.9.1/containerd-wasm-shims-v1-slight-linux-$(uname -m).tar.gz | tar -xzf - -C /assets;
38+
wget -O- https://github.com/deislabs/containerd-wasm-shims/releases/download/v0.9.1/containerd-wasm-shims-v1-spin-linux-$(uname -m).tar.gz | tar -xzf - -C /assets;
39+
wget -O- https://github.com/deislabs/containerd-wasm-shims/releases/download/v0.9.1/containerd-wasm-shims-v1-wws-linux-$(uname -m).tar.gz | tar -xzf - -C /assets
40+
- image: ghcr.io/kwasm/kwasm-node-installer:pr-46
41+
name: kwasm-initializer
42+
imagePullPolicy: Always
43+
args:
44+
- "install"
45+
- "-H"
46+
- "/mnt/node-root"
3447
securityContext:
3548
privileged: true
3649
volumeMounts:
50+
- name: assets
51+
mountPath: /assets
3752
- name: node-root
3853
mountPath: /mnt/node-root/
3954
containers:

0 commit comments

Comments
 (0)