首页 > 其他分享 >Kubernetes 初始化报错[ERROR CRI]: container runtime is not running:

Kubernetes 初始化报错[ERROR CRI]: container runtime is not running:

时间:2023-09-08 12:38:05浏览次数:40  
标签:errors container Kubernetes service -- 报错 10.10 preflight runtime

在linux上安装Kubernetes,初始化时报错:

[root@k8s-master ~]# kubeadm init \
> --apiserver-advertise-address=10.10.10.180 \
> --image-repository registry.aliyuncs.com/google_containers \
> --kubernetes-version v1.28.1 \
> --service-cidr=10.10.10.0/24 \
> --pod-network-cidr=10.10.11.0/24 \
> --service-dns-domain=cluster.local \
> --ignore-preflight-errors=Swap \
> --ignore-preflight-errors=NumCPU
[init] Using Kubernetes version: v1.28.1
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:
	[ERROR CRI]: container runtime is not running: output: time="2023-09-08T11:35:06+08:00" level=fatal msg="validate service connection: CRI v1 runtime API is not implemented for endpoint \"unix:///var/run/containerd/containerd.sock\": rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService"
, error: exit status 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
To see the stack trace of this error execute with --v=5 or higher

解决方案很简单:

root@k8s-master ~]# rm -rf /etc/containerd/config.toml
[root@k8s-master ~]# systemctl restart containerd
# 完成后重新初始化,通过
[root@k8s-master ~]# kubeadm init --apiserver-advertise-address=10.10.10.180 --image-repository registry.aliyuncs.com/google_containers --kubernetes-version v1.28.1 --service-cidr=10.10.10.0/24 --pod-network-cidr=10.10.11.0/24 --service-dns-domain=cluster.local --ignore-preflight-errors=Swap --ignore-preflight-errors=NumCPU
[init] Using Kubernetes version: v1.28.1
[preflight] Running pre-flight checks
[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'

标签:errors,container,Kubernetes,service,--,报错,10.10,preflight,runtime
From: https://blog.51cto.com/u_1264026/7408230

相关文章

  • PO 7.5安装失败,92%报错
    3262702-NetWeaverApplicationServerJavacouldnotbestartedafterupdateofSAPJVM8.1toPL91致敬老铁装了PO7.5,试错了不止5次。。。。报错信息如下图 过程分析检查手段使用老应的BASIS技师的十八般武艺           刀枪剑戟斧钺勾叉鞭......
  • 安装强化学习包gym报错问题及解决方法
    安装命令pipinstallgymnasium[all]如遇如下报错error:command'swig.exe'failed:Nosuchfileordirectory[endofoutput]note:Thiserrororiginatesfromasubprocess,andislikelynotaproblemwithpip.ERROR:Failedbuildingwheelfo......
  • 微服务启动失败,报错信息:java.lang.RuntimeException: dynamic-datasource Please chec
    【问题描述】Causedby:org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'dataSource'definedinclasspathresource[com/baomidou/dynamic/datasource/spring/boot/autoconfigure/DynamicDataSourceAutoConfiguration.cl......
  • uni报错TypeError: uni[a39_0x592c5e(...)] is not a function
    本次报错是因为不知名原因导致第三方的插件进行了混淆故重新将报错的插件进行安装即可如上图所示为uni.transition插件报错此时只需到uniapp官网重新安装即可......
  • RTSP流媒体服务器EasyNVR视频平台以服务方式启动异常却无报错,该如何解决?
    EasyNVR是基于RTSP/Onvif协议的安防视频云服务平台,可实现设备接入、实时直播、录像、检索与回放、云存储、视频分发、级联等视频能力服务,可覆盖全终端平台(电脑、手机、平板等终端),在智慧工厂、智慧工地、智慧社区、智慧校园等场景中有大量落地应用。 有用户反馈,在项目现场启动Ea......
  • 安装docker 镜像之后 进入镜像下载报错
    在学习使用docker技术过程中,基于centos镜像自定义新的镜像,其中基础镜像centos需要提前安装好vim和net-tools,然而在刚开始通过yum-yinstallvim安装vim时,便出现了错误提示信息:Error:Failedtodownloadmetadataforrepo'appstream':Cannotprepareinternalm......
  • docker启动mysql报错Can't read dir of '/etc/mysql/conf.d/'
    执行命令:dockerrun-p3306:3306--privileged=true-v/mysql/data:/var/lib/mysql-v/mysql/log:/var/log/mysql-v/mysql/conf:/etc/mysql-eMYSQL_ROOT_PASSWORD=1234--name=mysql-server-dmysql:8.0 错误信息:[ERROR][Entrypoint]:mysqldfailedwhileat......
  • qstat报错15137
    PBS服务报错,报错信息如下:socket_connect_unixfailed:15137socket_connect_unixfailed:15137socket_connect_unixfailed:15137qstat:cannotconnecttoserver(null)(errno=15137)couldnotconnecttotrqauthd 解决方法:启动“trqauthd”和“p......
  • 执行python脚本报错:case by sslerror(sslcertVerificationerror(1,ssl:vertificate_ve
    【现象】  使用python编写了一个请求,报错ssl证书过期问题【解决办法】   requests.packages.urllib3.disable_warnings()  r=requests.post(service_url,data=payload,headers=self.headers,verify=False)参考链接:https://www.cnblogs.com/sea-stream/p/14......
  • @supermap/iclient-leaflet使用tiledMapLayer报错
    使用leaflet加载超图的时候有时候超图无法加载有时候报如下错误因为手上有好几个项目都在使用leaflet但是同样都使用@supermap/iclient-leaflet(版本11.1.0-a)加载超图,有的项目可行,有的不可行最后打开项目根目录下node_modules里查看@supermap文件夹里的iclient-leafl......