mos icon indicating copy to clipboard operation
mos copied to clipboard

[idea] Unikernel Runtime for Kubernetes

Open gaocegege opened this issue 6 years ago • 11 comments

It will be interesting to implement a CRI-O-compatible runtime for unik or other unikernel solutions. Then we could investigate if we could use unikernel to serve serverless workload in Kubernetes.

Related Projects and Issues

  • https://github.com/solo-io/unik
    • https://github.com/solo-io/unik/wiki/UniK:-Build-and-Run-Unikernels-with-Ease
  • https://github.com/kata-containers/runtime
  • https://github.com/kubevirt/kubevirt
  • https://github.com/Mirantis/virtlet
  • https://github.com/kubernetes/frakti/issues/99

gaocegege avatar Dec 11 '18 13:12 gaocegege

interested

xplorld avatar Dec 11 '18 21:12 xplorld

如果用这个系统(或者任何系统)让 k8s 支持 Unikernel 应该也不能直接搞个 Pod, 因为你不能把 docker image 像是 pod 一样 run, 所以会有独特的 crd. 所以……这个 idea 我可以理解为写个 Unik crd 吗?

xplorld avatar Dec 11 '18 23:12 xplorld

以及 k8s 的 cri 现在不支持自定义,整个 kubelet (还是整个集群?)只能用一种 cri, 所以如果用 cri 来搞意味着不兼容 docker (?) 所以也说明了需要 crd 而不能用 pod

xplorld avatar Dec 11 '18 23:12 xplorld

可以啊,CRI 就是为了支持 pod 才写的

gaocegege avatar Dec 12 '18 01:12 gaocegege

支持自定义,通过 annotation,可以一个节点多个 cri

gaocegege avatar Dec 12 '18 01:12 gaocegege

vm 怎么跑 docker image

xplorld avatar Dec 12 '18 02:12 xplorld

kata, runv 是如何资词的,就可以继续如何资词

gaocegege avatar Dec 12 '18 03:12 gaocegege

现在已经有 vm 的 cri 了,https://github.com/kata-containers/runtime

gaocegege avatar Dec 12 '18 03:12 gaocegege

话说策策是不是该更新下这个 issue 了

at15 avatar Jul 16 '20 09:07 at15

done

gaocegege avatar Jul 16 '20 09:07 gaocegege

I think we can keep it a open, I have two WIP projects k1s (a rust implementation compatible w/ k8s) and guguos (a library os for running relational database) that are related to this idea.

(Then the next comment shows up 2 years later w/ someone else implemented it ...

at15 avatar Jul 16 '20 11:07 at15