在部署kubernetes集群的时候,检测集群环境出现以下报错:
# kubeadm init --dry-run
[ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables contents are not set to 1
原因:主机未开启net.bridge.bridge-nf-call-iptables内核参数。
解决:1、永久配置内核参数
# cat >> /etc/sysctl.conf << EOF net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1 net.ipv4.ip_forward = 1 EOF
2、重新加载内核配置
# sysctl -p


![[ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables] [ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]](http://www.mshxw.com/aiimages/31/730449.png)
