Open slapcat opened 3 weeks ago
Hi @slapcat, thank you for bringing this up.
See https://github.com/canonical/microk8s/issues/4361#issuecomment-1902584389 for the related issue in MicroK8s. Though these args can help to work around the bug, in MicroK8s we went the route of adjusting the kubelet service so that the required cgroup controllers are properly delegated, see https://github.com/canonical/microk8s/pull/4503
We will need to adjust that patch for k8s-snap as well.
Summary
Kubelet fails to start after bootstrap completes. The system journal shows the following error from the
snap.k8s.kubelet.service
unit:What Should Happen Instead?
Kubelet is configured correctly to start on the system.
Reproduction Steps
System information
Can you suggest a fix?
This issue might be related to the upstream bug here: https://github.com/cri-o/cri-o/issues/7701
Adding these lines to the bottom of
/var/snap/k8s/common/args/kubelet
and restartingsnap.k8s.kubelet.service
fixes the issue:Are you interested in contributing with a fix?
No response