openshift route报错error: update acceptor rejected router-4: pods for rc ‘default/router-4‘ took longe

2021-08-10 11:18:04 浏览数 (1)

openshift部署完之后查看pod 状态:router服务器报错

代码语言:javascript复制
[root@master data]# oc get pods
NAME                       READY     STATUS    RESTARTS   AGE
docker-registry-1-zcn8c    1/1       Running   0          1h
registry-console-1-sh6fg   1/1       Running   0          1h
router-4-deploy            0/1       Error     0          1h

查看日志:

代码语言:javascript复制
[root@master-compute1 data]# oc log -f router-4-deploy
log is DEPRECATED and will be removed in a future version. Use logs instead.
--> Scaled older deployment router-3 down
--> Scaling router-4 to 1
error: update acceptor rejected router-4: pods for rc 'default/router-4' took longer than 600 seconds to become available

解决方法: oc rollout latest router

代码语言:javascript复制
[root@master-compute1 data]# oc rollout latest router
deploymentconfig.apps.openshift.io/router rolled out

再次查看route状态:router-5-deploy 已经处于运行状态

代码语言:javascript复制
[root@master-compute1 ~]# oc get pods
NAME                       READY     STATUS    RESTARTS   AGE
docker-registry-1-zcn8c    1/1       Running   0          1h
registry-console-1-sh6fg   1/1       Running   0          1h
router-4-deploy            0/1       Error     0          1h
router-5-deploy            1/1       Running   0          11s
router-5-lfjhd             0/1       Running   0          8s

0 人点赞