【问题标题】:Readiness probe failed: remote error: tls: bad certificate就绪探测失败:远程错误:tls:证书错误
【发布时间】:2022-09-26 18:46:49
【问题描述】:

我收到以下错误:

 Warning  Unhealthy  14m (x4 over 15m)     kubelet            Liveness probe failed: Get \"https://10.244.1.13:8443/healthz\": remote error: tls: bad certificate

服务器配置了 tls 支持。

https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/ 中写道: If scheme field is set to HTTPS, the kubelet sends an HTTPS request skipping the certificate verification. 所以不清楚为什么我们会收到这个错误。

    标签: kubernetes


    【解决方案1】:

    您在描述中提到的内容与主题完全不同。 请检查您是否仅在就绪探针中进行了配置,并且您需要在就绪探针和活跃度探针中进行配置。

    如果您期待向服务发送 HTTPS 请求,则必须更改方案。

    活性探针:

    httpGet:

    小路: /

    端口:443

    方案:HTTPS

    就绪探针:

    httpGet:

    小路: /

    端口:443

    【讨论】:

      猜你喜欢
      • 2018-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-05
      • 1970-01-01
      • 2020-07-03
      • 1970-01-01
      • 2019-09-24
      相关资源
      最近更新 更多