安装遇到的问题
- FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables contents are not set to 1
- hostname "k8s-master0" could not be reached
- Initial timeout of 40s passed.
- 解决方案:看一下启动的 yaml 文件里的 IP 是否正确
- node 节点 kubectl get node 报错 The connection to the server localhost:8080 was refused - did you specify the right host or port
- 将 master 节点的 /etc/kubernetes 下的 admin.config 复制到 node 相同节点,然后执行 export KUBECONFIG=/etc/kubernetes/admin.conf