vault: probes use http VAULT_ADDR for http listener

This commit is contained in:
Brad Stein 2025-12-20 00:09:44 -03:00
parent e354f8bc3f
commit dba8364c74

View File

@ -54,6 +54,8 @@ spec:
- name: cluster
containerPort: 8201
env:
- name: VAULT_ADDR
value: "http://127.0.0.1:8200"
- name: VAULT_API_ADDR
value: "https://secret.bstein.dev"
- name: VAULT_CLUSTER_ADDR
@ -72,14 +74,14 @@ spec:
value: "true"
readinessProbe:
exec:
command: ["vault", "status", "-tls-skip-verify"]
command: ["sh", "-c", "VAULT_ADDR=http://127.0.0.1:8200 vault status"]
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6
livenessProbe:
exec:
command: ["sh", "-c", "vault status -tls-skip-verify >/dev/null 2>&1 || true"]
command: ["sh", "-c", "VAULT_ADDR=http://127.0.0.1:8200 vault status >/dev/null 2>&1 || true"]
initialDelaySeconds: 60
periodSeconds: 20
timeoutSeconds: 5