gpt4 book ai didi

openshift - 准备/活跃度探针失败。杀荚

转载 作者:行者123 更新时间:2023-12-02 12:22:39 28 4
gpt4 key购买 nike

我正在尝试使用Openshift在线从我的仓库中放入一些代码。
我的构建编译正常,但是部署失败:

error: update acceptor rejected nodejs-mongo-persistent-7: pods for rc "nodejs-mongo-persistent-7" took longer than 600 seconds to become ready

查看事件监视器,我看到以下错误:
Liveness probe failed: Get http://10.129.127.123:8080/pagecount: dial tcp 10.129.127.123:8080: getsockopt: connection refused
Readiness probe failed: Get http://10.129.127.123:8080/pagecount: dial tcp 10.129.127.123:8080: getsockopt: connection refused

发生此错误约50次,直到一切超时并且我的 pods 被杀死。

我并不是真正的服务器专家,并且以前从未在环境中工作过,所以我最不了解的大多数帮助资源。

这是事件日志的屏幕截图:
http://imgur.com/a/yv3fA
From : $ sudo docker pull registry/nodejs-mongo-persistent:latest

architecture=x86_64
authoritative-source-url=registry.access.redhat.com
build-date=2017-04-21T09:41:19.146364
com.redhat.build-host=ip-10-29-120-133.ec2.internal
com.redhat.component=rh-nodejs4-docker
com.redhat.deployments-dir=/opt/app-root/src
com.redhat.dev-mode=DEV_MODE:false
com.redhat.dev-mode.port=DEBUG_PORT:5858
distribution-scope=public
io.k8s.description=Platform for building and running Node.js 4 applications
io.k8s.display-name=springstead-portfolio/nodejs-mongo-persistent-8:ff0aacc1
io.openshift.build.commit.author=Shawn Springstead <stang90@gmail.com>
io.openshift.build.commit.date=Mon Jun 19 15:35:17 2017 -0400
io.openshift.build.commit.id=409c93610f0b2b264c84429106dc8bbcf0f3fee0
io.openshift.build.commit.message=correct server info
io.openshift.build.commit.ref=master
io.openshift.build.image=registry.access.redhat.com/rhscl/nodejs-4-rhel7@sha256:c5b21dc08cf5da8b6b0485147d946d8202f2be211c17bcef3a0fc26570217dd3
io.openshift.build.source-location=https://github.com/SpringsTea/Big-Mac-Index
io.openshift.expose-services=8080:http
io.openshift.s2i.scripts-url=image:///usr/libexec/s2i
io.openshift.tags=builder,nodejs,nodejs4
io.s2i.scripts-url=image:///usr/libexec/s2i
release=11.16
summary=Platform for building and running Node.js 4 applications
vcs-ref=e688e26c75b1418982bef6a87b9bbacd6d47604c
vcs-type=git
vendor=Red Hat, Inc.
version=4

最佳答案

首先,您的Pod公开了Liveness和Readiness探针所需的端口,这是在Pod配置中完成的。

Liveness probes are executed by the kubelet, so all requests are made in the kubelet network namespace.



确保不要在服务端口上运行探针,而是在本地端口上运行。

关于openshift - 准备/活跃度探针失败。杀荚,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44638925/

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