kubernetes-core fails to deploy successfully on localhost provider
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charmed Kubernetes Bundles |
Triaged
|
Medium
|
Unassigned |
Bug Description
Hi,
I've been testing the `kubernetes-core` bundle on LXD in a couple of different environments, including:
- Ubuntu 20.10 on a Ryzen desktop
- Ubuntu 20.04 inside a Multipass VM
- Ubunutu 20.04 on a DigitalOcean droplet
I'm seeing a failure in the deployment of the `easyrsa` charm. It seems that `easyrsa` is deployed to a LXD container inside machine 0, but the journal shows a load of errors about AppArmor confinement and therefore an inability to install snaps.
I'm installing like so:
```
sudo snap install lxd --classic
sudo lxd init --auto
sudo snap install juju --classic
sudo lxc network set lxdbr0 ipv6.address none
juju bootstrap localhost
juju deploy kubernetes-core
```
Juju Status shows: https:/
Juju debug log: https:/
Troubleshooting showing broken LXD container on machine 0: https:/
Note that I can get the bundle to deploy if I patch the bundle with an overlay that deploys `easyrsa` to machine 0 directly, rather than a container within. The overlay looks like this:
```
---
applications:
easyrsa:
annotations:
gui-x: "90"
gui-y: "420"
charm: cs:~containers/
num_units: 1
resources:
easyrsa: 5
to:
- "0"
kubernetes-
options:
kubelet-
```
Without the `options/
Thanks for the report. Seems like the nested LXD machine causes problems on the localhost provider. The overlay you've posted looks like a good workaround to me.
> Without the `options/ kubelet- extra-config` section, the nodes never become ready for scheduling in my experience.
This is a known issue that is being tracked here: https:/ /bugs.launchpad .net/charm- kubernetes- worker/ +bug/1903566