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