Re:Blog: KWOK: Kubernetes WithOut Kubelet
by zoobab on Wednesday March 01, 2023 @10:23AM
(#34983341)
I also use k3d and k0s:
Re:Blog: KWOK: Kubernetes WithOut Kubelet
by MuffinFlavored on Wednesday March 01, 2023 @10:48AM
(#34983609)
I wonder how big of an effort it would be for Apple to take some engineers and make Mac OS support kernel namespaces/cgroups that would bridge the gap between all of these cool container features Linux has that requires a virtual machine to recreate on Mac.
Re:Blog: KWOK: Kubernetes WithOut Kubelet
by moondev on Wednesday March 01, 2023 @10:51AM
(#34983645)
They should enable nested virtualization on M1/M2 first. As it stands now it's impossible to do anything with KVM without dual booting Asahi
Re:Blog: KWOK: Kubernetes WithOut Kubelet
by nilptr on Wednesday March 01, 2023 @10:54AM
(#34983681)
Wait really? How does Docker macOS work on M1/M2? Or does it not?
Re:Blog: KWOK: Kubernetes WithOut Kubelet
by moondev on Wednesday March 01, 2023 @11:02AM
(#34983796)
Docker Desktop runs dockerd in a Linux VM with Apple's hypervisor framework. You can also run containers in a Linux VM with Parallels or VMware Fusion hypervisors, QEMU on macOS also uses HVF not KVM. But you can't run VMs inside those VMs as it stands today. This works fine on Intel Macs which means you can't experiment and use KVM - one of the killer features of Linux and things like https://kubevirt.io/ and firecracker. Or VMs running stuff like Proxmox TrueNAS or ESXi (all possible on Intel macs and every x86_64 CPU)
Re:Blog: KWOK: Kubernetes WithOut Kubelet
by remram on Wednesday March 01, 2023 @12:34PM
(#34985352)
It seems to me that the right fix is for Docker Desktop to support M1. Docker, kubelet, the k8s control plane, and everything else has supported ARM for ages. There is no need for that extra VM and therefore no blocker on nested virtualization.
Re:Blog: KWOK: Kubernetes WithOut Kubelet
by sofixa on Wednesday March 01, 2023 @01:27PM
(#34986299)
It's not an ARM problem, it's a kernel/OS one. Same as Windows, macOS simply doesn't have what it takes (namespaces, cgroups, etc.) to run Docker/Linux containers natively, therefore an intermediary Linux VM is needed.
Re:Blog: KWOK: Kubernetes WithOut Kubelet
by remram on Wednesday March 01, 2023 @02:31PM
(#34987114)
Doh, I forgot about that. You're right, the VM is needed anyway.
Re:Blog: KWOK: Kubernetes WithOut Kubelet
by moondev on Wednesday March 01, 2023 @03:58PM
(#34988261)
Agreed, but considering that kubernetes now supports joining windows workers to run windows containers, as well as integrated support for dockerd inside wsl2... That leaves macOS as honestly the worst platform for any kind of container related work.
Re:Blog: KWOK: Kubernetes WithOut Kubelet
by MuffinFlavored on Wednesday March 01, 2023 @03:12PM
(#34987631)
> Docker Desktop runs dockerd in a Linux VM with Apple's hypervisor framework
Which in my experience uses at a minimum 4gb of RAM just sitting idle with no containers running
Re:Blog: KWOK: Kubernetes WithOut Kubelet
by preisschild on Wednesday March 01, 2023 @12:06PM
(#34984859)
Would this solve anything? Most containers use a linux userspace, which requires an actual linux kernel.
Your idea would more similar to Flatpak (containerized GUI apps).
[1] https://kind.sigs.k8s.io/