当前位置: 首页 > news >正文

记录一次安装k8s初始化失败

实例化

 kubeadm init --config=kubeadm.yaml --ignore-preflight-errors=SystemVerification

报错

[init] Using Kubernetes version: v1.25.0
[preflight] Running pre-flight checks
error execution phase preflight: [preflight] Some fatal errors occurred:[ERROR CRI]: container runtime is not running: output: time="2024-05-27T14:24:00+08:00" level=fatal msg="validate service connection: CRI v1 runtime API is not implemented for endpoint \"unix:///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

看报错提示CRI v1 runtime API is not implemented for endpoint "unix:///run/containerd/containerd.sock,报错说明containerd 没有启动,我们看下containerd 状态

crictl info
FATA[0000] validate service connection: CRI v1 runtime API is not implemented for endpoint "unix:///run/containerd/containerd.sock": rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService 
systemctl status containerd 
● containerd.service - containerd container runtimeLoaded: loaded (/usr/lib/systemd/system/containerd.service; enabled; vendor preset: disabled)Active: active (running) since Sat 2024-05-25 15:00:45 CST; 1 day 23h agoDocs: https://containerd.ioProcess: 17742 ExecStartPre=/sbin/modprobe overlay (code=exited, status=0/SUCCESS)Main PID: 17744 (containerd)Tasks: 10Memory: 16.4MCGroup: /system.slice/containerd.service└─17744 /usr/bin/containerdMay 25 15:00:45 node4 containerd[17744]: time="2024-05-25T15:00:45.244945213+08:00" level=error m...gin"
May 25 15:00:45 node4 containerd[17744]: time="2024-05-25T15:00:45.245036348+08:00" level=info ms...l.v1
May 25 15:00:45 node4 containerd[17744]: time="2024-05-25T15:00:45.245143134+08:00" level=info ms...c.v1
May 25 15:00:45 node4 containerd[17744]: time="2024-05-25T15:00:45.245165036+08:00" level=info ms...c.v1
May 25 15:00:45 node4 containerd[17744]: time="2024-05-25T15:00:45.245596769+08:00" level=info ms...ices
May 25 15:00:45 node4 containerd[17744]: time="2024-05-25T15:00:45.245678125+08:00" level=info ms...ice"
May 25 15:00:45 node4 containerd[17744]: time="2024-05-25T15:00:45.245791893+08:00" level=warning...s\""
May 25 15:00:45 node4 containerd[17744]: time="2024-05-25T15:00:45.246066102+08:00" level=info ms...trpc
May 25 15:00:45 node4 containerd[17744]: time="2024-05-25T15:00:45.246138980+08:00" level=info ms...sock
May 25 15:00:45 node4 containerd[17744]: time="2024-05-25T15:00:45.246224876+08:00" level=info ms...99s"
Hint: Some lines were ellipsized, use -l to show in full.

可以看error里面是由错误的。

 journalctl -fu containerd
May 25 15:00:45 node4 containerd[17744]: time="2024-05-25T15:00:45.245678125+08:00" level=info msg="Connect containerd service"
May 25 15:00:45 node4 containerd[17744]: time="2024-05-25T15:00:45.245791893+08:00" level=warning msg="failed to load plugin io.containerd.grpc.v1.cri" error="failed to create CRI service: failed to find snapshotter \"overlayfs\""

这里说明系统不支持overlayfs

lsmod | grep overlay
overlay                91659  0 
  xfs_info /

在这里插入图片描述
从docker 官方文档上面来看
在这里插入图片描述
如果要修改xfs ftyoe 要修改设置,可是如果修改这个设计影响系统,所以暂时启动这个服务器

相关文章:

  • 介绍下 npm 模块安装机制,为什么输入 npm install 就可以自动安装对应的模块
  • Docker 入门版
  • jdk8中元空间是否会触发GC
  • GitLab的原理及应用详解(四)
  • 打造坦克游戏:类方法的深入解析
  • 【ARMv7-A】——ATPCS(ARM-Thumb 过程调用标准)
  • 邦注科技三机一体除湿干燥机在工业中的应用
  • 达梦数据库登报测评命令
  • 适合下班做的副业兼职、1天挣300,7天涨粉2万
  • HTML5和CSS3的新特性
  • K8s集群中的Pod调度约束亲和性与反亲和性
  • 分布式事务解决方案(最终一致性【可靠消息解决方案】)
  • grafana大盘展示node_expod节点
  • springboot发送短信验证码,结合redis 实现限制,验证码有效期2分钟,有效期内禁止再次发送,一天内发送超3次限制
  • 【C++】牛客——小红的口罩
  • Consul Config 使用Git做版本控制的实现
  • DataBase in Android
  • Java Agent 学习笔记
  • Javascripit类型转换比较那点事儿,双等号(==)
  • leetcode-27. Remove Element
  • Less 日常用法
  • React的组件模式
  • 你不可错过的前端面试题(一)
  • 前端路由实现-history
  • 我的业余项目总结
  • 一加3T解锁OEM、刷入TWRP、第三方ROM以及ROOT
  • - 转 Ext2.0 form使用实例
  • Spring第一个helloWorld
  • ​LeetCode解法汇总2670. 找出不同元素数目差数组
  • ​如何使用ArcGIS Pro制作渐变河流效果
  • $Django python中使用redis, django中使用(封装了),redis开启事务(管道)
  • (6)【Python/机器学习/深度学习】Machine-Learning模型与算法应用—使用Adaboost建模及工作环境下的数据分析整理
  • (8)STL算法之替换
  • (附源码)springboot 智能停车场系统 毕业设计065415
  • (附源码)ssm高校志愿者服务系统 毕业设计 011648
  • (附源码)ssm码农论坛 毕业设计 231126
  • (含react-draggable库以及相关BUG如何解决)固定在左上方某盒子内(如按钮)添加可拖动功能,使用react hook语法实现
  • (七)Appdesigner-初步入门及常用组件的使用方法说明
  • (深入.Net平台的软件系统分层开发).第一章.上机练习.20170424
  • (一)spring cloud微服务分布式云架构 - Spring Cloud简介
  • (转)菜鸟学数据库(三)——存储过程
  • (转)我也是一只IT小小鸟
  • (最优化理论与方法)第二章最优化所需基础知识-第三节:重要凸集举例
  • .gitignore
  • .libPaths()设置包加载目录
  • .NET Core跨平台微服务学习资源
  • .NET/C# 编译期能确定的字符串会在字符串暂存池中不会被 GC 垃圾回收掉
  • .NET简谈设计模式之(单件模式)
  • .NET微信公众号开发-2.0创建自定义菜单
  • //TODO 注释的作用
  • @selector(..)警告提示
  • []C/C++读取串口接收到的数据程序
  • [20171106]配置客户端连接注意.txt
  • [boost]使用boost::function和boost::bind产生的down机一例
  • [CareerCup] 14.5 Object Reflection 对象反射