【发布时间】:2018-11-08 03:28:25
【问题描述】:
我所有的kubectl get 命令都失败,并出现以下错误The connection to the server localhost:8080 was refused - did you specify the right host or port?
我检查了我的/etc/kubernetes/admin.conf 的 ip,除了其他东西之外,它还有以下内容:server: https://10.23.23.19:6443
由于那是我机器的IP,所以我想到了运行这样的命令kubectl get pods --server=10.23.23.19:6443
上面给了我错误-Unable to connect to the server: net/http: HTTP/1.x transport connection broken: malformed HTTP response "\x15\x03\x01\x00\x02\x02"
我做错了什么?我有一个 3 节点集群,所有这些都在主节点上。当其他 2 个节点加入时,他们确实加入成功,这就是我在屏幕上看到的状态。
我使用本教程(我自己的入门略有偏差)-https://www.linuxtechi.com/install-kubernetes-1-7-centos7-rhel7/
【问题讨论】:
标签: kubernetes kubectl