搭建kubernetes 集群出现的错误

问题:

/proc/sys/net/bridge/bridge-nf-call-iptables contents are not set to 1

[preflight] Running pre-flight checks
	[WARNING Hostname]: hostname "node0" could not be reached
	[WARNING Hostname]: hostname "node0": lookup node0 on 114.114.114.114:53: no such host
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

解决方案 

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

问题

在这里插入图片描述

 解决方案

echo "1" > /proc/sys/net/ipv4/ip_forward

问题

network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/n

 解决方案

K8s网络插件报错:network: stat /var/lib/calico/nodename: no such file or directory: check that the calico/n - 云+社区 - 腾讯云

你可能感兴趣的:(kubernetes,容器,云原生)