- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我很难理解Pod Readiness探针为何失败。
Warning Unhealthy 21m (x2 over 21m) kubelet, REDACTED Readiness probe failed: Get http://192.168.209.74:8081/actuator/health: dial tcp 192.168.209.74:8081: connect: connection refused
kubectl exec -it REDACTED-l2z5w /bin/bash
$ curl -v http://192.168.209.74:8081/actuator/health
$ curl -v http://192.168.209.74:8081/actuator/health
* Expire in 0 ms for 6 (transfer 0x5611b949ff50)
* Trying 192.168.209.74...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x5611b949ff50)
* Connected to 192.168.209.74 (192.168.209.74) port 8081 (#0)
> GET /actuator/health HTTP/1.1
> Host: 192.168.209.74:8081
> User-Agent: curl/7.64.0
> Accept: */*
>
< HTTP/1.1 200
< Set-Cookie: CM_SESSIONID=E62390F0FF8C26D51C767835988AC690; Path=/; HttpOnly
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: 0
< X-Frame-Options: DENY
< Content-Type: application/vnd.spring-boot.actuator.v3+json
< Transfer-Encoding: chunked
< Date: Tue, 02 Jun 2020 15:07:21 GMT
<
* Connection #0 to host 192.168.209.74 left intact
{"status":"UP",...REDACTED..}
Readiness: http-get http://:8081/actuator/health delay=20s timeout=3s period=5s #success=1 #failure=10
readinessProbe:
failureThreshold: 10
httpGet:
path: /actuator/health
port: 8081
scheme: HTTP
initialDelaySeconds: 20
periodSeconds: 5
successThreshold: 1
timeoutSeconds: 3
最佳答案
描述事件总是显示您正在检查的资源上的最后一个事件。事实是,记录的最后一个事件是在检查readinessProbe
时出错。
我在实验室中使用以下Pod list 进行了测试:
apiVersion: v1
kind: Pod
metadata:
name: readiness-exec
spec:
containers:
- name: readiness
image: k8s.gcr.io/busybox
args:
- /bin/sh
- -c
- sleep 30; touch /tmp/healthy; sleep 600
readinessProbe:
exec:
command:
- cat
- /tmp/healthy
initialDelaySeconds: 5
periodSeconds: 5
/tmp/healthy
将在30秒后在容器中创建,并且
readinessProbe
将在5秒后检查文件是否存在,并每5秒重复一次检查。
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 7m56s default-scheduler Successfully assigned default/readiness-exec to yaki-118-2
Normal Pulling 7m55s kubelet, yaki-118-2 Pulling image "k8s.gcr.io/busybox"
Normal Pulled 7m55s kubelet, yaki-118-2 Successfully pulled image "k8s.gcr.io/busybox"
Normal Created 7m55s kubelet, yaki-118-2 Created container readiness
Normal Started 7m55s kubelet, yaki-118-2 Started container readiness
Warning Unhealthy 7m25s (x6 over 7m50s) kubelet, yaki-118-2 Readiness probe failed: cat: can't open '/tmp/healthy': No such file or directory
readinessProbe
查找文件6次,但没有成功,这是完全正确的,因为我将其配置为每5秒检查一次,并在30秒后创建了该文件。
readinessProbe
无法检查。实际上,这意味着您的 pod 自21分钟前就健康了。
关于kubernetes - K8S Pod Readiness Probe失败,连接被拒绝,但是Pod正在处理请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62155259/
在 GKE 上,我尝试使用就绪探针/活性探针,并使用监控发布警报 https://cloud.google.com/monitoring/alerts/using-alerting-ui 作为测试,我
在我的 K8S 工作负载中,我实现了 Readiness 探测和 Liveness 探测以进行 pod 健康检查。 我想知道我是否应该将间隔 (periodSeconds) 设置为低至 1 秒,因为它
我正在尝试在 minicube kubernetes 集群中设置 istio1.5.1,我正在按照 Knative 的官方文档设置 istio 而无需 sidecar 注入(inject)。我正面临
我正在研究 linux 设备驱动程序。目前,我大致了解设备驱动程序的流程,但我不知道 probe() 函数如何获取其参数。 例如,这是我的代码,它基于内核 3.10。 static int gpio_
我正在编写一个简单的 YAML 文件以使用 Centos.6 上的 TCP 端口应用 active 探测 我从公共(public)存储库中提取了一个 centos:6 图像 使用图像启动了一个容器。
我对我的数据库使用了 Idera 的 SQL Doctor。它在“查询优化”类别中生成报告,我发现“列上的函数“PROBE”可能导致表扫描”。工具提供链接http://sqldoctor.idera.
我对我的数据库使用了 Idera 的 SQL Doctor。它在“查询优化”类别中生成报告,我发现“列上的函数“PROBE”可能导致表扫描”。工具提供链接http://sqldoctor.idera.
我正在努力理解 this omap2 Pandas 板的mcspi驱动代码。 不明白是谁调用了probe函数,this中的调用链是什么?驱动代码? 设备连接后如何通知驱动程序? 最佳答案 spi-om
我开始为通过笔记本电脑的 PCIe 扩展槽连接的 PCI 设备开发 Linux 设备驱动程序。 启动时,一切正常。但是,我正在尝试在线获得基本的 Hotplug 支持。当我弹出卡时,我可以看到(在 d
已结束。此问题不符合 Stack Overflow guidelines .它目前不接受答案。 我们不允许提出有关书籍、工具、软件库等方面的建议的问题。您可以编辑问题,以便用事实和引用来回答它。 关闭
我正在使用 stale-if-error 来提供陈旧的内容,而在 grace 中查看 keep 和 vcl_hit 对象选项时,服务器被标记为不健康。 问题是:进入vcl子程序vcl_backend_
在我的 Kubernetes 设置中,我有 2 个 pod - A(通过部署)和 B(通过 DS)。 Pod B 以某种方式依赖于 Pod A 的完全启动。我现在想在 Pod B 中设置一个 HTTP
我目前正在研究哈希表,对双重哈希有点困惑。首先让我从我得到的信息开始。 首先创建一个数组来保存所有数据,并且它们按键排序。我使用公式 K % size 来查找键在数组中的位置。如果您将 key 提交到
有一个函数将从两个不同的平台驱动程序调用。我想知道linux的平台驱动核心是否有机会同时调用两个不同设备的probe()?如果是,那么从这两个 probe() 调用的公共(public)函数应该设计为
我正在尝试使用 linux perf 工具在特定功能期间监控性能统计数据。 我正在按照 https://perf.wiki.kernel.org/index.php/Jolsa_Features_To
在 kubernetes 官方文档中,我正在阅读此页面(关于 container probe 以及为什么我们应该使用 startup-probe) when-should-you-use-a-star
我正在尝试设置一个 2 节点 gluster 服务器。我已经在这两个节点中安装了 gluster-server 并启动了 glusterd 服务。 我能够从两台机器上对这些机器中的每台进行 ping
我有一个在 Ubuntu 容器内运行的进程,如果该进程被终止,我想重新部署该容器。我在容器规范中添加了以下活性探针 livenessProbe: exec: command:
所以我知道我想为其创建一个书签的应用程序,我知道该应用程序是使用 Angular 6 构建的。我做了一些谷歌搜索,找到了一种使用 article 修改 DOM 的方法。 第一步是调用probe ng上
我有一个 k8s 集群。我们的服务是基于队列的。我们的 pod 订阅事件队列,获取事件并执行任务。那么对于这种服务,k8s的liveness probe和readiness probe怎么定义呢? 最
我是一名优秀的程序员,十分优秀!