首页 新闻 赞助 找找看

Kubernetes: kubeadm join 加入集群时 preflight 检查出错

0
悬赏园豆:30 [已解决问题] 解决于 2023-05-02 11:26

将一个节点作为 control-plane 加入集群,preflight 检查时出错,出错信息如下

[preflight] Running pre-flight checks
error execution phase preflight: [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=...`
To see the stack trace of this error execute with --v=5 or higher
k8s
dudu的主页 dudu | 高人七级 | 园豆:31075
提问于:2023-05-02 10:53
< >
分享
最佳答案
0

参考 https://github.com/kubernetes/kubeadm/issues/1062 中的评论,通过下面2个命令解决了

modprobe br_netfilter
echo '1' > /proc/sys/net/ipv4/ip_forward
dudu | 高人七级 |园豆:31075 | 2023-05-02 11:26
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册