k8s新增节点组件未启动问题记录

 背景:

新加的k8s节点内网主机,本地镜像已经存在,kube-proxy/caclico服务启动失败,查看pod日志报错如下

Failed to create pod sandbox: rpc error: code = Unknown desc = failed to create containerd task: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v2.task/k8s.io/7ca04c9265248abe9341a0668f52ebfb62e08ee88f5753714e5edec35015c49c/log.json: no such file or directory): runc did not terminate successfully: exit status 127: unknown

通过journalctl -xefu containerd查看日志获取到如下信息

Sep 08 10:17:29 k8s-node containerd[27896]: time="2023-09-08T10:17:29.088325139+08:00" level=error msg="RunPodSandbox for &PodSandboxMetadata{Name:kube-proxy-dtggn,Uid:420081bc-91ea-42da-8791-1cfb3052fe39,Namespace:kube-system,Attempt:0,} failed, error" error="failed to create containerd task: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v2.task/k8s.io/df229da174a0ed25a0ad6bfa4fb6cec01d300047fbd4a13e1b4d2a39a0809038/log.json: no such file or directory): runc did not terminate successfully: exit status 127: unknown"

在主机使用runc命令发现报错

[root@k8s-node ~]# runc
runc: symbol lookup error: runc: undefined symbol: seccomp_notify_respond

【报错原因】 缺少依赖包libseccomp(需安装2.4以上版本)

【解决办法】 安装libseccomp 2.5.1

[root@k8s-node ~]# wget http://rpmfind.net/linux/centos/8-stream/BaseOS/x86_64/os/Packages/libseccomp-2.5.1-1.el8.x86_64.rpm
[root@k8s-node ~]# rpm -ivh libseccomp-2.5.1-1.el8.x86_64.rpm
[root@k8s-node ~]# rpm -qa |  grep libseccomp
libseccomp-2.5.1-1.el8.x86_64

 再次查看服务已正常启动

相关推荐

  1. K8S问题记录

    2023-12-18 09:36:01       34 阅读
  2. 新版k8s拉取镜像失败问题

    2023-12-18 09:36:01       25 阅读
  3. K8S(三)—组件

    2023-12-18 09:36:01       61 阅读
  4. k8s核心组件

    2023-12-18 09:36:01       33 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-18 09:36:01       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-18 09:36:01       106 阅读
  3. 在Django里面运行非项目文件

    2023-12-18 09:36:01       87 阅读
  4. Python语言-面向对象

    2023-12-18 09:36:01       96 阅读

热门阅读

  1. AcWing802. 区间和思路

    2023-12-18 09:36:01       64 阅读
  2. ES6之对象新增的方法

    2023-12-18 09:36:01       58 阅读
  3. IDEA中如何使用Vue

    2023-12-18 09:36:01       57 阅读
  4. 全志V3s之NFS连接ubuntu22.04

    2023-12-18 09:36:01       60 阅读
  5. conda channel的镜像设置

    2023-12-18 09:36:01       49 阅读
  6. 力扣面试150题 | 15.三数之和

    2023-12-18 09:36:01       56 阅读