【问题标题】:kubeadm join - unable to check if the container runtimekubeadm join - 无法检查容器运行时是否
【发布时间】:2018-04-05 20:20:40
【问题描述】:

向现有 1.9.0 集群添加新节点时。 kubeadm 给出此错误消息。

我的集群在 Centos 7 服务器上运行。 docker 守护进程正在运行,但没有找到 /var/run/dockershim.sock 文件。

如何解决这个错误信息?

kubeadm join --token 
[preflight] Some fatal errors occurred:
        [ERROR CRI]: unable to check if the container runtime at "/var/run/dockershim.sock" is running: exit status 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`

谢谢 SR

【问题讨论】:

  • 您在加入时提供了令牌吗?格式大致应该是这样的:kubeadm join --token <token> <master-ip>:<master-port> --discovery-token-ca-cert-hash sha256:<hash>
  • 是的,我提供了令牌

标签: kubernetes kubeadm


【解决方案1】:

有一个讨论:I have the following problem when I want to use the client for CRI #153
随后是 cubeadm 问题:How to get kubeadm init to not fail? #733
该问题已通过 Pull Request kubeadm init: skip checking cri socket in preflight checks #58802
解决 版本 v1.9.3 是 PR 合并后最近的版本。

作为建议的解决方法,您可以禁用 CRI 检查:

kubeadm init --ignore-preflight-errors=cri

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2022-11-03
  • 1970-01-01
  • 1970-01-01
  • 2017-12-20
  • 2019-05-31
  • 2021-07-20
  • 2019-11-01
相关资源
最近更新 更多