Openshift源OC群集启动失败

时间:2018-10-03 09:15:06

标签: kubernetes openshift openshift-origin

使用openshift起源的最新版本v3.10.0,我在centos VM上运行以下命令:

oc cluster up --public-hostname=192.168.56.15 --http-proxy=http://proxy.ip:port --https-proxy=https://proxy.ip:port --no-proxy=[192.168.56.0/24,172.0.0. 0/8,192.168.56.15,192.168.56.15,localhost]

结果我得到:

Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3.10 is available ...
Checking type of volume mount ...
Determining server IP ...
Checking if OpenShift is already running ...
Checking for supported Docker version (=>1.22) ...
Checking if insecured registry is configured properly in Docker ...
Checking if required ports are available ...
Checking if OpenShift client is configured properly ...
Checking if image openshift/origin-control-plane:v3.10 is available ...
Starting OpenShift using openshift/origin-control-plane:v3.10 ...
I1003 10:58:00.643521    3446 flags.go:30] Running "create-kubelet-flags"
I1003 10:58:01.314805    3446 run_kubelet.go:48] Running "start-kubelet"
I1003 10:58:01.549316    3446 run_self_hosted.go:172] Waiting for the kube-apiserver to be ready ...
E1003 11:03:01.559324    3446 run_self_hosted.go:542] API server error: Get https://127.0.0.1:8443/healthz?timeout=32s: dial tcp 127.0.0.1:8443: getsockopt: connection refused ()
Error: timed out waiting for the condition

在跟随docker日志时,我注意到以下错误:

E1003 github.com/openshift/origin/vendor/k8s.io/kubernetes/pkg/kubelet/kubelet.go:452: Failed to list *v1.Service: Get https://localhost:8443/api/v1/services?limit=500&resourceVersion=0: dial tcp [::1]:8443: getsockopt: connection refused

这是正常现象,因为netstat仅显示一个打开的端口:

tcp6       0      0 :::10250                :::*                    LISTEN      3894/hyperkube

PS:

  • 如您所见,我使用代理服务器。
  • 我尝试使用本地解析,使用dns代替ip @,并且由于我没有DNS服务器,因此我使用了/ etc / hosts,同样的问题。

0 个答案:

没有答案
相关问题