Closed buxiaomo closed 8 months ago
k8s < 1.19 do not support Cgroups v2
run the stat -fc %T /sys/fs/cgroup/
command on the node:
For cgroup v2, the output is cgroup2fs
.
For cgroup v1, the output is tmpfs
.
Try to add systemd.unified_cgroup_hierarchy=0
to /etc/default/grub
your boot options and see what Kubelet does
GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1 systemd.unified_cgroup_hierarchy=0"
update-grub2
Your Environment
Operating System: Ubuntu 22.04 Kubernetes version: v1.18.20 Kubernetes Container runtime: docker Kubernetes Container networks: flannel
group_vars/all.yml file content?
group_vars/kubernetes.yml file ?
Context
No response
Log Information