You are viewing a single comment's thread from:

RE: 部署 k8s Cluster(下) — Kubernetes(6)

in #kubernetes7 years ago

"W1025 01:38:11.959624 45595 factory_object_mapping.go:423] Failed to download OpenAPI (Get http://localhost:8080/swagger-2.0.0.pb-v1: dial tcp 127.0.0.1:8080: getsockopt: connection refused), falling back to swagger\nThe connection to the server localhost:8080 was refused - did you specify the right host or port?"。老师能帮我看一下这是什么问题吗?这也是有人在github上问的一个问题,https://github.com/kubernetes-incubator/kubespray/issues/1866。

Sort:  

我下的kubernetes是1.8.6,试了很多次,都未能解决这个问题。只要执行kubectl准会输出:The connection to the server localhost:8080 was refused - did you specify the right host or port?。有点忧伤

亲测v1.8.5,部署完后三节点状态都是ready,但kubectl get pods --all-namespaces现实kube-dns状态停留在 ContainerCreating,journalctl -u kubelet | grep kube-dns看到“ Error deleting network: failed to find plugin "portmap" in path [/opt/flannel/bin /opt/cni/bin]”,解决办法到https://github.com/projectcalico/cni-plugin/releases/download/v1.9.1/portmap下载portmap并放到/opt/cni/bin,加上可执行权限。。。。。。。大坑啊

按照你说的方法搞定了。。帮了大忙了,我都没发现这个问题

我也是,不过我换了个vps就好了。。我之前用的vultr,后来变成digitalocean,就没这个问题了。

Coin Marketplace

STEEM 0.16
TRX 0.15
JST 0.028
BTC 59220.04
ETH 2316.03
USDT 1.00
SBD 2.51