获取就绪探测日志

时间:2021-07-26 18:31:43

标签: azure kubernetes azure-aks

下午好,我在 AKS 中有一个集群,其中有一个微服务可以查询它所依赖的 3 个服务。

    readinessProbe:
      failureThreshold: 3
      httpGet:
        path: / readiness
        port: http
        scheme: HTTP
      initialDelaySeconds: 3
      periodSeconds: 3
      successThreshold: 1
      timeoutSeconds: 1

{"podname": "podname", "healths": [{"name": "redis", "status": "ok"}, {"name": "pushPublisher", "status": "ok "}, {"name": "postgres", "status": "ok"}]}

有时微服务被推迟(运行 0/1),因为就绪探针中的某些服务失败,并且在事件中找不到哪个服务是下降或超过超时时间的服务。为 timeoutSeconds 设置更高的值不是解决方案,因为我们不知道问题的根源是什么。

有没有办法查看就绪探测日志或重定向日志以在事件信息之外的某个地方查看它们?在事件中,我只有以下内容: http-get http://: http/readiness delay = 3s timeout = 1s period = 3s #success = 1 # failure = 3

0 个答案:

没有答案