我在一个 kubernetes pod 中运行 4 个服务,所有服务都在同一个端口上运行,但是每个服务的健康检查点都不同。我想在 liveness/readiness 探针中添加多个路径。目前我正在使用以下配置来检查一项服务的运行状况。我想添加更多路径。我怎样才能做到这一点?我尝试过使用二元运算符(“/service1/health && /service2/health && /service3/health”),但这对我不起作用。
livenessProbe:
httpGet:
path: /service1/health
port: 8080
httpHeaders:
- name: Custom-Header
value: iamalive
initialDelaySeconds: 60
failureThreshold: 5
periodSeconds: 60
timeoutSeconds: 120