安装
疑难问题
Kubeadm初始化报错:[ERROR CRI]: container runtime is not running:
[root@k8s-master ~]# kubeadm init \
> --apiserver-advertise-address=192.168.119.41 \
> --image-repository registry.aliyuncs.com/google_containers \
> --kubernetes-version v1.25.4 \
> --service-cidr=10.92.0.0/12 \
> --pod-network-cidr=10.220.0.0/16 \
> --ignore-preflight-errors=all
[init] Using Kubernetes version: v1.25.4
[preflight] Running pre-flight checks
[WARNING CRI]: container runtime is not running: output: E1210 23:43:56.386818 1736 remote_runtime.go:948] "Status from runtime service failed" err="rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService"
time="2022-12-10T23:43:56+08:00" level=fatal msg="getting status of runtime: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService"
, error: exit status 1
[preflight] Pulling images required for setting up a Kubernetes cluster
解决办法:
rm -rf /etc/containerd/config.toml systemctl restart containerd
标签:runtime,Kubernetes,service,部署,--,preflight,k8s From: https://www.cnblogs.com/im17me/p/16972678.html