Error Message:The connection to the server localhost:8080 was refused - did you specify the right host or port?
    image.png
    image.png
    应用一下配置文件,但此时我们遇到了保障信息“The connection to the server localhost:8080 was refused - did you specify the right host or port?”,这是因为我们是在node节点上部署的,而管理命令是在master初始化试的时候master节点上才有的,所以我们需要拷贝和操作一下

    先要从master节点上,把指定文件传送到node节点上:“scp -r /etc/kubernetes/admin.conf root@10.1.10.129:/etc/kubernetes/”

    然后再在node节点上执行:“echo “export KUBECONFIG=/etc/kubernetes/admin.conf” >> /etc/profile”

    “source /etc/profile”

    Error Describe:在部署了ingress-nginx之后,发现各种服务正常,但是从宿主机去访问服务,就是不通,后来发现需要在ingress controller的配置文件中的配置“ externalTrafficPolicy: Local ”这一行注释掉,就能访问了,应该是和实验环境涉及到NAT有关
    image.png

    相关解决方案:https://www.jianshu.com/p/4e1a97577e33

    相关解释:http://www.javashuo.com/article/p-qupsfvlf-nd.html