我成功地安装了openshift 3.9,但是WebConsole不工作,我想也不存在。
版本
oc v3.9.0+ba7faec-1
kubernetes v1.9.1+a0ce1bc657
features: Basic-Auth GSSAPI Kerberos SPNEGO
Server: ***
openshift v3.9.0+ba7faec-1
kubernetes v1.9.1+a0ce1bc657项目web-控制台不存在,网页错误是:
missing service (service "webconsole" not found) missing route (service "webconsole" not found)
复制的步骤
INSTALLER STATUS ********************************************************************************************************************************************************************************* Initialization : Complete (0:00:31) Web Console Install : Complete (0:00:04)
这个安装关卡没有产生效果,
接下来,im试图从下面的指令安装一个web控制台:https://github.com/openshift/origin-web-console-server#installing-the-console
但是,在这个带网络控制台的吊舱一直处于待定状态之后.有错误:Warning FailedScheduling 4s (x8 over 1m) default-scheduler 0/1 nodes are available: 1 MatchNodeSelector.
有什么想法吗?
编辑:
oc -n openshift-web控制台描述pod
Name: webconsole-675b8c8779-h65gl
Namespace: openshift-web-console
Node: <none>
Labels: app=openshift-web-console
pod-template-hash=2316474335
webconsole=true
Annotations: openshift.io/scc=restricted
Status: Pending
IP:
Controlled By: ReplicaSet/webconsole-675b8c8779
Containers:
webconsole:
Image: openshift/origin-web-console:v3.9.0
Port: 8443/TCP
Command:
/usr/bin/origin-web-console
--audit-log-path=-
-v=0
--config=/var/webconsole-config/webconsole-config.yaml
Requests:
cpu: 100m
memory: 100Mi
Liveness: exec [/bin/sh -c if [[ ! -f /tmp/webconsole-config.hash ]]; then
\
md5sum /var/webconsole-config/webconsole-config.yaml > /tmp/webconsole-
config.hash; \
elif [[ $(md5sum /var/webconsole-config/webconsole-config.yaml) != $(cat
/tmp/webconsole-config.hash) ]]; then \
echo 'webconsole-config.yaml has changed.'; \
exit 1; \
fi && curl -k -f https://0.0.0.0:8443/console/] delay=0s timeout=1s
period=10s #success=1 #failure=3
Readiness: http-get https://:8443/healthz delay=0s timeout=1s period=10s
#success=1 #failure=3
Environment: <none>
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from webconsole-token-xgmj2
(ro)
/var/serving-cert from serving-cert (rw)
/var/webconsole-config from webconsole-config (rw)
Conditions:
Type Status
PodScheduled False
Volumes:
serving-cert:
Type: Secret (a volume populated by a Secret)
SecretName: webconsole-serving-cert
Optional: false
webconsole-config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: webconsole-config
Optional: false
webconsole-token-xgmj2:
Type: Secret (a volume populated by a Secret)
SecretName: webconsole-token-xgmj2
Optional: false
QoS Class: Burstable
Node-Selectors: node-role.kubernetes.io/compute=true
Tolerations: node.kubernetes.io/memory-pressure:NoSchedule
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling 1m (x37 over 11m) default-scheduler 0/1 nodes
are available: 1 MatchNodeSelector.oc -n openshift-web控制台获取事件
LAST SEEN FIRST SEEN COUNT NAME
KIND SUBOBJECT TYPE REASON SOURCE
MESSAGE
4m 20m 57 webconsole-675b8c8779-
h65gl.1528f23510e2d8d3 Pod Warning FailedScheduling
default-scheduler 0/1 nodes are available: 1 MatchN
.
20m 20m 2 webconsole-675b8c8779.1528f234d40fd602
ReplicaSet Warning FailedCreate replicaset-controller
Error creating: pods "webconsole-
" is forbidden: error looking up service account openshift-web-
console/webconsole: serviceaccount "webconsole" not found
20m 20m 1 webconsole-675b8c8779.1528f23510db69ee
ReplicaSet Normal SuccessfulCreate replicaset-controller
Created pod: webconsole-675b8c877
20m 20m 1 webconsole.1528f234d3694bcc
Deployment Normal ScalingReplicaSet deployment-controller
Scaled up replica set webconsole-
to 1发布于 2018-04-26 05:15:44
根据您的错误消息,您可能会击中issue#6930。验证库存配置的主节点设置为openshift_schedulable=true。您可以使用oc describe node <node>验证这一点。关于如何更改post安装,您可以参考文档。
然而,奇怪的是,当控制台无法到达时,安装就成功了。
https://stackoverflow.com/questions/49995500
复制相似问题