kubernetes - 无法将工作节点加入k8中的主节点
问题描述
当使用 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 未安装或未安装在您的PATH
:
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 中来解决。
推荐阅读
- python - 如何在可执行文件上运行脚本?
- r - “率”列的长度必须为 1(汇总值),而不是 22906
- python - tkinter 按钮按下重复
- python - 从其他计算机控制树莓派 python 项目
- javascript - Apache Cordova:从 Web 视图中引发事件
- angular - 在 Firestore 中创建结构并获取数据
- selenium-webdriver - 无法单击硒网络驱动程序中的第二个按钮
- java - 如何通过 Arraylist 打印完整的输入列表?
- javascript - 使用 WEBRTC 进行端口扫描
- arrays - 如何像在 Scala 中一样展平数组