deislabs / containerd-wasm-shims

containerd shims for running WebAssembly workloads in Kubernetes
Apache License 2.0
312 stars 48 forks source link

Bug: static files are not accessible in spin shirm #51

Closed michealch closed 1 year ago

michealch commented 1 year ago

Hey,

Pod Status is CrashLoopBackOff when files variable is added under component to access static files. Spin FileServer has same problem.

Mossaka commented 1 year ago

When the image is built, we assumed that at the root of the image filesystem, there could only be two files: a wasm module and a spin toml file. This is a restriction that we will probably lift off in the future as spin.toml supprts many components. With the current restriction, you really have to put the static files in a pod yaml file and inserted into the runtime's filesystem in order for spin to find the static assets to serve.