How can you combine an HTTP liveness probe with a custom HTTP header "X-Health: true" in Kubernetes pod spec?
AlivenessProbe:
httpGet:
path: /healthz
port: 8080
headers:
- X-Health: true
initialDelaySeconds: 10
periodSeconds: 5
BlivenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 10
periodSeconds: 5
ClivenessProbe:
exec:
command: ["curl", "-H", "X-Health:true", "/healthz"]
initialDelaySeconds: 10
periodSeconds: 5
DlivenessProbe:
httpGet:
path: /healthz
port: 8080
httpHeaders:
- name: X-Health
value: "true"
initialDelaySeconds: 10
periodSeconds: 5