-
Notifications
You must be signed in to change notification settings - Fork 792
Running Microk8s in an unprivileged LXD container #2755
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The profile we have for LXD is very permissive so as to not block any workloads users may want to run in Kubernetes. Users with well defined workloads can start with the wide open LXD profile and try to make it less permissive allowing only the capabilities their workload requires. |
I face with the same issue. As you know the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
not stale, not completed |
Coming here from https://github.com/lxc/lxd/issues/4184, my understanding is that having the ability to run MicroK8s in an unprivileged container would open up possibilities with ZFS zones. @stgraber wrote in particular:
I'm not sure I fully understood your comment, @ktsakalozos. You talked about (specific) workloads, but what about MicroK8s itself first. Can it (be made to) work in an unprivileged container? |
I'm not sure if it's relevant to this discussion, but I stumbled upon this concept of "rootless mode" in Kubernetes: https://kubernetes.io/docs/tasks/administer-cluster/kubelet-in-userns/
Which relies on the And while we're talking about MicroK8s here, I found some similar discussion regarding K3s: k3s-io/k3s#4249.
And, from the discussion on this page, it looks like K3s does work in an unprivileged LXD container thanks to this mode. If my interpretation is correct, could the same capability be built in MicroK8s? |
@dalbani this is an interesting feature/setup configuration that up to this point we have not looked into it. |
Thanks @ktsakalozos for the feedback 👍 |
Rootless mode can be a welcomed addition, but it (currently) has many limitations (see docs). I would still prefer a regular K8s. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
/unstale |
What's the status?
|
Official docs for running Microk8s inside LXD containers still define microk8s LXD profile that runs it in as a privileged container and also disables a bunch of other security related features.
What is missing to run Microk8s in a regular, unprivileged container? I'm running Microk8s in a VM, but would love to have an option for running it in (unprivileged) containers. You can already run Docker like that, so nested container runtimes are probably not the main issue?
The text was updated successfully, but these errors were encountered: