首页 > 其他分享 >Kubernetes 无法join:[ERROR CRI]: container runtime is not running:

Kubernetes 无法join:[ERROR CRI]: container runtime is not running:

时间:2023-09-30 10:11:20浏览次数:43  
标签:container Kubernetes -- containerd kubelet preflight join runtime

Kubernetes初始化成功,然后将node加入,结果报错:

[root@k8s-node1 ~]# kubeadm join 10.10.10.185:6443 --token 84pas2.ifxb6o8g7h2abg28 --discovery-token-ca-cert-hash sha256:f85f0c324e0b951238617f9037832b63e4c4a6c7679aaa53c711a829fc9374e6
[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-27T14:07:00+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

很明显,是containerd配置问题。直接将/etc/containerd/config.toml重新配置,

containerd config default
systemctl restart containerd

然后重新加入,成功!

[root@k8s-node1 containerd]# kubeadm join 10.10.10.185:6443 --token 84pas2.ifxb6o8g7h2abg28 --discovery-token-ca-cert-hash sha256:f85f0c324e0b951238617f9037832b63e4c4a6c7679aaa53c711a829fc9374e6
[preflight] Running pre-flight checks
[preflight] Reading configuration from the cluster...
[preflight] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'
[kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
[kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"
[kubelet-start] Starting the kubelet
[kubelet-start] Waiting for the kubelet to perform the TLS Bootstrap...

This node has joined the cluster:
* Certificate signing request was sent to apiserver and a response was received.
* The Kubelet was informed of the new secure connection details.

Run 'kubectl get nodes' on the control-plane to see this node join the cluster.
Kubernetes 无法join:[ERROR CRI]: container runtime is not running:

标签:container,Kubernetes,--,containerd,kubelet,preflight,join,runtime
From: https://www.cnblogs.com/ips9999/p/17737642.html

相关文章

  • 高可用Kubernetes集群实战(二)
    安装containerd容器运行时[root@k8sm1~]#yuminstall-ycontainerd.io-1.6.6生成containerd配置文件创建配置文件存储目录[root@k8sm1~]#mkdir-p/etc/containerd生成配置文件[root@k8sm1~]#containerdconfigdefault>/etc/containerd/config.toml修改配置文件修改san......
  • 高可用Kubernetes集群实战(三)
    安装nginx安装依赖[root@k8sm1~]#yuminstall-yepel-release安装nginxkeepalived[root@k8sm1~]#yuminstall-ynginxkeepalivednginx-mod-stream配置nginx[root@k8sm1~]#cat/etc/nginx/nginx.conf#Formoreinformationonconfiguration,see:#*OfficialE......
  • Kubernetes 无法join:[ERROR CRI]: container runtime is not running:
    Kubernetes初始化成功,然后将node加入,结果报错:[root@k8s-node1~]#kubeadmjoin10.10.10.185:6443--token84pas2.ifxb6o8g7h2abg28--discovery-token-ca-cert-hashsha256:f85f0c324e0b951238617f9037832b63e4c4a6c7679aaa53c711a829fc9374e6[preflight]Runningpre-flight......
  • vue_error_Runtime directive used on component with non-element root node. The di
    翻译:'运行时指令,用于非元素根节点的组件。这些指令将无法发挥预期的作用';这个错误发生在我将v-show放在自定义组件上时,我想是因为自定义组件在渲染时会被自定义组件的内部元素替换,因此设置是无效的解决:在自定义组件外加一个div,把v-show写在div上......
  • 02. Kubeadm部署Kubernetes集群
    目录1、前言2、Kubernetes部署方式3、kubeadmin部署3.1、关闭防火墙3.2、配置阿里云Kubernetes源3.3、安装kubeadm,kubelet,kubectl3.4、初始化master节点3.5、master节点配置kubectl命令行工具3.6、master节点下载flannel网络配置文件3.7、node1和node2节点加入Kubernetes集群3.8、......
  • Kubernetes 上的数据已跨越鸿沟:在 GKE 上运行有状态应用程序的案例
    Kubernetes是当今云原生开发的事实上的标准。长期以来,Kubernetes主要与无状态应用程序相关,例如Web和批处理应用程序。然而,与大多数事物一样,Kubernetes也在不断发展。如今,我们看到Kubernetes上有状态应用程序的数量呈指数级增长。事实上,自2019年以来,在GoogleKubernetesE......
  • Kubernetes 上的数据已跨越鸿沟:在 GKE 上运行有状态应用程序的案例
    Kubernetes是当今云原生开发的事实上的标准。长期以来,Kubernetes主要与无状态应用程序相关,例如Web和批处理应用程序。然而,与大多数事物一样,Kubernetes也在不断发展。如今,我们看到Kubernetes上有状态应用程序的数量呈指数级增长。事实上,自2019年以来,在GoogleKubernetes......
  • ubuntu20.04使用kubeadm安装kubernetes1.24.4
    介绍1.k8s的版本在1.24版本开始Kubernetes正式移除对Dockershim的支持,Kubernetes1.24之后,如还想继续在k8s中使用docker,需要自行安装cri-dockerd组件或者containerd组件,下面的步骤,经过反复测试很多次,步骤应该很稳2.#更新阿里云yumsudocp/etc/apt/sources.list/etc/apt/sourc......
  • java.lang.IllegalStateException: javax.websocket.server.ServerContainer not avai
    spring项目能正常运行,但是单元测试报错错误原因注册WebSocket的Bean与springboot内带tomcat冲突解决办法1.注释该类里面的代码(不推荐)2.@springBootTest注解添加webEnvironment=SpringBootTest.WebEnvironment.RANDOM_PORT@SpringBootTest注解中,给出了webEnvironment参......
  • Kubernetes创建MysQL
    原文:https://www.cnblogs.com/wenkuna/p/16985512.html创建数据存储PV、PVC这里我们使用nfs作为storageclass,具体yaml文件如下:yaml#创建PVapiVersion:v1kind:PersistentVolumemetadata:name:mysqlspec:storageClassName:manualcapacity:storage:20Gi......