k8s 安装遇到的问题

265 阅读1分钟

安装遇到的问题

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