https://blog.csdn.net/weixin_42562106/article/details/123100476


升级内核报错可用下面代码
sudo apt-get update && sudo apt-get dist-upgrade
apt -t bullseye-backports install linux-image-amd64
apt -t bullseye-backports install linux-headers-amd64

sudo apt autoremove kubernetes-cni
#cgroupfs驱动替换
sed -i "s/cgroupDriver: systemd/cgroupDriver: cgroupfs/g" /var/lib/kubelet/config.yaml
systemctl daemon-reload
systemctl restart kubelet
或者使用配置文件
# kubeadm-config.yaml
kind: ClusterConfiguration
apiVersion: kubeadm.k8s.io/v1beta3
kubernetesVersion: v1.22.0
---
kind: KubeletConfiguration
apiVersion: kubelet.config.k8s.io/v1beta1
#cgroupDriver: systemd
cgroupDriver: cgroupfs
kubeadm init --config kubeadm-config.yaml