1、kubeadm添加node节点报错如下:
[root@kubernetes-node6 ~]# kubeadm join 192.168.xxx.xxx:6443 --token 5hyie4.ocowzqgfsf2e9mm7wj \
> --discovery-token-ca-cert-hash sha256:a1c3fe8911f853ff91fafdweb6a1sfdfd85e8ab776f4c6da925a6e877c9659a9645
[preflight] Running pre-flight checks
[WARNING Service-Docker]: docker service is not enabled, please run 'systemctl enable docker.service'
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 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
2、解决方法
echo "1" >/proc/sys/net/bridge/bridge-nf-call-iptables # 执行此行命令即可