k3s-ansible
k3s-ansible copied to clipboard
Failure to start pods: Apparmour not installed on Debian Bullseye
I use Hetzner Cloud machines with Debian Bullseye. Everything looked fine after the Ansible script executed, but a closer look revealed: Not a single pod came up successfully.
The solution was found by a look into the logs: apparmour_parser was not there.
I appended the following lines to roles/prereq/tasks/main.yml and the problem was gone.
- name: Install Apparmour
package:
name: apparmor
state: present
You saved my life today.
Looks like there is another way: disable apparmor on boot: https://github.com/rancher/k3os/issues/702#issuecomment-849175078
I was unable to test Hetzner Cloud machines, and the images I could find of Debian 11 had apparmor_parser installed, but I went ahead and added a clause to the preq task. Hopefully this addresses your case.