k3s-ansible icon indicating copy to clipboard operation
k3s-ansible copied to clipboard

Failure to start pods: Apparmour not installed on Debian Bullseye

Open jensens opened this issue 2 years ago • 1 comments

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

jensens avatar Jul 11 '22 19:07 jensens

You saved my life today.

Looks like there is another way: disable apparmor on boot: https://github.com/rancher/k3os/issues/702#issuecomment-849175078

mvhirsch avatar Sep 05 '22 08:09 mvhirsch

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.

dereknola avatar Nov 10 '23 18:11 dereknola