3 ms·
Yes, it's possible already to run K8s entirely inside a system container deployed with Docker + Sysbox. It's as easy as "docker run --runtime=sysbox-runc -it so
by ctalledo 6y ago
Yes, it's possible already to run K8s entirely inside a system container deployed with Docker + Sysbox. It's as easy as "docker run --runtime=sysbox-runc -it some-image" and running kubeadm inside to setup K8s. We also have images that come preloaded with K8s to make it easier.
Here is a demo video: https://asciinema.org/a/V1UFSxz6JHb3rdHpGrnjefFIt?speed=1.75 https://asciinema.org/a/V1UFSxz6JHb3rdHpGrnjefFIt?speed=1.75
Having said this, K8s is very complex and while its most common functionality works inside the container, we've not yet tested it all.
Here is a doc that describes this in more detail, including what is supported and not supported at this time: https://github.com/nestybox/sysbox/blob/master/docs/user-guide/kind.md https://github.com/nestybox/sysbox/blob/master/docs/user-gui...
- ctalledo 6y agoWe also created a simple tool called kindbox that runs K8s inside system containers deployed with Docker + Sysbox. It's a simple bash script around "docker run --runtime=sysbox" commands. It does some of the same things that K8s.io KinD tool does, but using simpler Docker images and without using privileged containers. It's meant as a reference example to show developers how to deploy K8s clusters using Docker + Sysbox. You can find kindbox here if you are curious: https://github.com/nestybox/kindbox https://github.com/nestybox/kindbox