-
Notifications
You must be signed in to change notification settings - Fork 55
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
Followed "Installing to a local machine" steps to deploy Charmed kubernetes on local LXD, can't delete pods #871
Comments
I suspect some sort of permissions issue in the kubernetes interaction with LXD, but not sure where to look. Any ideas? |
I presume your deployment went somewhat like this: in recent months i've heard advising from LXD community to encourage use of VMs rather than containers for hosting Kubernetes environment b/c Kubernetes requires a privileged container to allow for "container on container". Privileged containers expose a security risk to the host OS and therefore that support is going to be drawn back. Did you deploy with virtual-machine on lxd, or containers? You might have a nicer go of things with VMs |
Hi @addyess, Yes, I followed https://ubuntu.com/kubernetes/docs/install-local. And the deployment used containers:
I'll see how to use VMs instead, and give that a try. |
you can create an overlay bundle for your machines and specify a constraint for them: https://juju.is/docs/juju/constraint#heading--virt-type |
the overlay could look like: applications:
kubernetes-control-plane:
constraints: "cores=2 mem=8G root-disk=16G virt-type=virtual-machine"
kubernetes-worker:
constraints: "cores=2 mem=8G root-disk=16G virt-type=virtual-machine" |
Thanks @addyess, sorry for the delay on getting back to you. I tried it with the overlay but now lxd/juju is failing to create the
Here's the full juju status
|
hmm... it still seems that lxd is starting containers and not using qemu to start VMs. The lxd container profile shouldn't be used with VMs as far as I understand. so -- vms aside since it's clear we're going the container route here. I'm afraid this is going pretty deep into something wrong between the version of lxd and profile in the docs. Ii've not spent much time looking into running charmed-kubernetes on lxd as of late. |
Everything seems to deploy fine
Creating a pod works as well, but deleting pods (or deployments) hangs.
The text was updated successfully, but these errors were encountered: