【问题标题】:unable to join worker node to master node in k8无法将工作节点加入k8中的主节点
【发布时间】:2019-03-19 09:13:24
【问题描述】:

当使用 kubeadm 加入令牌将工作节点加入 k8 主节点时。我收到以下错误。

[preflight] running pre-flight checks
[preflight] WARNING: Couldn't create the interface used for talking to the container runtime: docker is required for container runtime: exec: "docker": executable file not found in $PATH
        [WARNING RequiredIPVSKernelModulesAvailable]: the IPVS proxier will not be used, because the following required kernel modules are not loaded: [ip_vs_sh nf_conntrack_ipv4 ip_vs ip_vs_rr ip_vs_wrr] or no builtin kernel ipvs support: map[ip_vs:{} ip_vs_rr:{} ip_vs_wrr:{} ip_vs_sh:{} nf_conntrack_ipv4:{}]
you can solve this problem with following methods:
 1. Run 'modprobe -- ' to load missing kernel modules;
2. Provide the missing builtin kernel ipvs support

[preflight] Some fatal errors occurred:
        [ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables does not exist
        [ERROR FileContent--proc-sys-net-ipv4-ip_forward]: /proc/sys/net/ipv4/ip_forward contents are not set to 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`

*********************
error 2 : when run modprobe_nrfilter
modprobe: FATAL: Module br_netfilter not found.

【问题讨论】:

  • 您的内核似乎太旧或没有启用模块
  • 日志说明失败原因,需要安装docker WARNING: Couldn't create the interface used for talking to the container runtime: docker is required for container runtime:

标签: kubernetes kubeadm


【解决方案1】:

您的PATH中似乎没有安装docker:

Couldn't create the interface used for talking to the container runtime: docker is required for container runtime: exec: "docker": executable file not found in $PATH

这可以通过安装 docker 并确保 docker 可执行文件在您的 PATH 中来解决。

【讨论】:

    猜你喜欢
    • 2019-07-14
    • 1970-01-01
    • 1970-01-01
    • 2023-04-01
    • 1970-01-01
    • 2020-04-26
    • 2019-09-05
    • 2020-08-04
    • 2020-06-03
    相关资源
    最近更新 更多