microk8s icon indicating copy to clipboard operation
microk8s copied to clipboard

cgroupv2 not being used

Open UbiquitousBear opened this issue 9 months ago • 1 comments

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.

UbiquitousBear avatar Mar 19 '25 13:03 UbiquitousBear

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

berkayoz avatar Mar 21 '25 13:03 berkayoz