cozystack/packages
Aleksei Sviridkin 06dce029c9 [cilium] Opt-out of cri-containerd.apparmor.d for nsenter init containers
Cilium 1.19 init containers mount-cgroup, apply-sysctl-overwrites,
mount-bpf-fs and clean-cilium-state call nsenter --ptrace, which is
denied by the cri-containerd.apparmor.d profile on Ubuntu 22.04+ and
any other distro loading this AppArmor profile. As a result cilium
agent pods land in Init:CrashLoopBackOff and downstream HelmReleases
cascade into "dependency not ready".

The modern k8s >= 1.30 pod-level appArmorProfile: Unconfined field is
accepted into the DaemonSet spec but not honoured by containerd CRI
at runtime (kubernetes/kubernetes#125069), so the deprecated
per-container AppArmor annotations remain the only reliable opt-out.

Add the annotations via podAnnotations in the wrapper values.yaml.
The change is harmless on systems without AppArmor (Talos,
RHEL/Rocky/AlmaLinux with SELinux) because kubelet silently ignores
unknown AppArmor annotations when the LSM is not loaded.

Assisted-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
(cherry picked from commit 6c0ae2570e)
2026-04-12 09:32:15 +00:00
..
apps [virtual-machine] Exclude external VM services from Cilium BPF LB 2026-04-08 14:44:34 +00:00
core Prepare release v1.2.1 2026-03-31 11:32:30 +00:00
extra Prepare release v1.2.1 2026-03-31 11:32:30 +00:00
library [cozy-lib] Add a hexToInt helper 2026-03-19 07:29:50 +03:00
system [cilium] Opt-out of cri-containerd.apparmor.d for nsenter init containers 2026-04-12 09:32:15 +00:00
tests/cozy-lib-tests refactor: replace Helm lookup with valuesFrom mechanism 2026-01-05 16:10:55 +01:00