k8s: [ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables] 安装失败

kubeadm init报错

报错: [ERROR FileContent—proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables 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

解决方法:

echo "1" >/proc/sys/net/bridge/bridge-nf-call-iptables

版权声明:本文为ichen820原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。