gpt4 book ai didi

kubernetes - oc cluster up 超时等待条件

转载 作者:行者123 更新时间:2023-12-04 15:53:28 28 4
gpt4 key购买 nike

我正在尝试在本地 Virtualbox centos 7.4 上设置 openshift origin。这是一个仅用于学习目的的多合一环境。我遵循了确切的文件:

https://docs.okd.io/latest/getting_started/administrators.html

方法一:在容器中运行

我安装了 docker,当我运行命令时,由于超时而失败:

[root@master openshift]# oc cluster up
Getting a Docker client ...
Checking if image openshift/origin-control-plane:v3.11 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.11 is available ...
Starting OpenShift using openshift/origin-control-plane:v3.11 ...
I1125 22:16:31.799473 10736 flags.go:30] Running "create-kubelet-flags"
I1125 22:16:32.867498 10736 run_kubelet.go:49] Running "start-kubelet"
I1125 22:16:33.568909 10736 run_self_hosted.go:181] Waiting for the kube-apiserver to be ready ...
I1125 22:17:02.633369 10736 interface.go:26] Installing "kube-proxy" ...
I1125 22:17:02.633386 10736 interface.go:26] Installing "kube-dns" ...
I1125 22:17:02.633392 10736 interface.go:26] Installing "openshift-service-cert-signer-operator" ...
I1125 22:17:02.633397 10736 interface.go:26] Installing "openshift-apiserver" ...
I1125 22:17:02.633420 10736 apply_template.go:81] Installing "openshift-apiserver"
I1125 22:17:02.634511 10736 apply_template.go:81] Installing "kube-proxy"
I1125 22:17:02.635754 10736 apply_template.go:81] Installing "kube-dns"
I1125 22:17:02.635924 10736 apply_template.go:81] Installing "openshift-service-cert-signer-operator"
I1125 22:17:12.316042 10736 interface.go:41] Finished installing "kube-proxy" "kube-dns" "openshift-service-cert-signer-operator" "openshift-apiserver"
Error: timed out waiting for the condition


[root@master openshift]# oc version
oc v3.11.0+0cbc58b
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

最佳答案

我使用 minishift 遇到了这个问题,但原因似乎是一样的。您可以尝试以下步骤,它应该会有所帮助。

对我有用的解决方法:

使用 hyperv + oc 3.11 + minishift v1.34.1+c2ff9cb。
问题仅在不太好的互联网连接上。
一旦 minishift start 命令第一次失败,ssh 进入 minishift vm。运行 oc cluster down 后运行 oc cluster up(从日志中复制)。重复此向下/向上步骤,直到您的集群启动。它可能是 10-20 倍或更多或更少,具体取决于网络。
一旦集群启动,运行 minishift stop/start,然后你就准备好了。
希望这可以帮助

关于kubernetes - oc cluster up 超时等待条件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53468622/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com