我hyperledger在集群中部署了一个结构网络 v2.2.0,其中有 2 个对等组织和一个排序组织kubernetes。每个组织都有自己的 CA 服务器。CA pod 有时会不断重新启动。为了知道CA服务器的服务是否可达,我尝试使用healthz端口9443上的API。
livenessProbe我在 CA 部署中使用了这样的条件:
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: 9443
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
Run Code Online (Sandbox Code Playgroud)
配置此活性探针后,Pod 会随着事件继续重新启动Liveness probe failed: HTTP probe failed with status code: 400。为什么会发生这种情况?