And the KDE session gets killed. Desktop is gone. Tried this twice.
When I log back in the container was made and is running.
What is going on with incus launch killing the desktop ?
That’s a terrible profile, this bypasses all security features and allows that container to directly reconfigure the kernel as it sees fit, including fully escaping the container and taking over the host system.
It’s not particularly surprising that this would then have negative effects on the whole system.
k8s is not meant to run in a container. It requires a physical system or a VM, and has been designed with such a setup in mind. Even the documentation talks about testing microk8s in a container instead of actually using it like that. When your host system crashes, it means that nasty things happen behind the scenes.
You should use an Incus VM with microk8s and not a container.
We’ve had that problem with the microk8s folks for well over 5 years now, I don’t see it improving any time soon.
K8s should be able to work without security.privileged and without any of those raw.lxc options, but making that work requires folks who actually understand Kubernetes to perform code changes to Kubernetes to properly behave when run in a container, as it stands it expects to be able to alter system-wide kernel setting on start up.
Unfortunately the microk8s team has been a team of packagers / scripters, not core Go and container developers, so nothing has been done to resolve this issue.