内容目录
官方教程:
https://openkruise.io/zh/kruisegame/installation/
本地环境:
使用kubekey安装的k8s 1.23.17 docker容器版本是25.0.0
结果docker版本过高
kubectl get pod -A
kruise-daemon-*容器报错 CrashLoopBackOff
kubectl logs kruise-daemon-4qzp6 -n kruise-system
日志提示
W0123 23:55:55.171147 1 factory.go:113] Failed to list images for docker (unix:///hostvarrun/docker.sock, unix:///hostvarrun/dockershim.sock): Error response from daemon: client version 1.23 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version
I0123 23:55:55.171184 1 cri.go:43] "Connecting to image service" endpoint="/hostvarrun/containerd/containerd.sock"
I0123 23:55:55.171202 1 util_unix.go:104] "Using this format as endpoint is deprecated, please consider using full url format." deprecatedFormat="/hostvarrun/containerd/containerd.sock" fullURLFormat="unix:///hostvarrun/containerd/containerd.sock"
I0123 23:55:55.171387 1 helpers.go:229] "Finding the CRI API image version"
I0123 23:55:55.173021 1 helpers.go:238] "Falling back to CRI v1alpha2 image API (deprecated in k8s 1.24)"
W0123 23:55:55.173588 1 factory.go:113] Failed to list images for containerd (, unix:///hostvarrun/containerd/containerd.sock): rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.ImageService
F0123 23:55:55.214121 1 main.go:69] Failed to new daemon: failed to new runtime factory: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.ImageService
显示api1.23过旧 其实是docker 25.0.0太新
快照恢复未安装k8s状态 重新安装docker 20.10.22
curl -fsSL https://get.docker.com -o install-docker.sh
sh install-docker.sh --version 20.10.22
systemctl start docker
systemctl enable docker
docker version
非虚拟机安装k8s集群的一把梭命令
#停止相关服务
sudo systemctl stop kubelet
sudo systemctl stop kube-apiserver
sudo systemctl stop kube-controller-manager
sudo systemctl stop kube-scheduler
sudo systemctl stop etcd
#卸载docker安装指定版本
yum remove docker* -y
curl -fsSL https://get.docker.com -o install-docker.sh
sh install-docker.sh --version 20.10.22
systemctl start docker
systemctl enable docker
docker version
#启动相关服务
sudo systemctl start kubelet
sudo systemctl start kube-apiserver
sudo systemctl start kube-controller-manager
sudo systemctl start kube-scheduler
sudo systemctl start etcd
最后正常
近期评论