cgroupv2 not being used
Summary
Containerd is not using cgroup v2 even though it exists, uses v1 instead.
What Should Happen Instead?
containerd.toml in /var/snap/microk8s/args should reference runtime_type = "io.containerd.runc.v2", and bin/containerd-shim-runc-v1 is used
Reproduction Steps
MicroK8s v1.31.6 on Ubuntu 24.04 LTS.
Introspection Report
inspection-report-20250319_135637.tar.gz
Can you suggest a fix?
Are you interested in contributing with a fix?
Yes
I have modified the template to change to run.v2, however the shim on v1 is still called.
Hey @UbiquitousBear ,
Thank you for reporting this issue. Have you also set --cgroup-driver to systemd?
See below for more information https://kubernetes.io/docs/tasks/administer-cluster/kubeadm/configure-cgroup-driver/ https://kubernetes.io/docs/setup/production-environment/container-runtimes/#containerd