jiayihu / fedra-thesis

Next-generation system for Computing Continuum via WebAssembly (WASM)
7 stars 2 forks source link

Allow to reach the WASM Pod from the cluster #58

Closed jiayihu closed 3 years ago

jiayihu commented 3 years ago

Epic #56

Ideally the WASM Pod is reachable as service from other cluster pods. In practice, krustlet doesn't support networking yet and the WASI standard itself isn't supporting it yet https://github.com/deislabs/krustlet/issues/505. The feasible path is to instead reach the running pod using k8s exec API. The latter is also easier said then done, issues are explained in https://github.com/deislabs/krustlet/issues/513

There isn't any official documentation on how kubectl exec works exactly or how the endpoint should behave. Some reverse engineering is available at https://erkanerol.github.io/post/how-kubectl-exec-works/ or can be deduced from how kube clients work https://github.com/clux/kube-rs/blob/33207f9589/kube/src/api/subresource.rs#L500