问题记录
问题1: code = Unimplemented desc = unknown service runtime.v1.ImageService"
[root@k8s-master ~]# kubeadm config images pull --config kubeadm.yaml
failed to pull image "registry.aliyuncs.com/google_containers/kube-apiserver:v1.24.4": output: time="2023-02-12T00:12:41+08:00" level=fatal msg="validate service connection: CRI v1 image API is not implemented for endpoint \"unix:///var/run/containerd/containerd.sock\": rpc error: code = Unimplemented desc = unknown service runtime.v1.ImageService"
, error: exit status 1
To see the stack trace of this error execute with --v=5 or higher
# 解决过程
[root@k8s-master ~]# mv /etc/containerd/config.toml /etc/containerd/config.toml.bak
cat > /etc/containerd/config.toml <<EOF
[plugins."io.containerd.grpc.v1.cri"]
systemd_cgroup = true
EOF
systemctl restart containerd