vault: rolling restart to fix raft join; remove sealedok from readiness probe
This commit is contained in:
@@ -103,15 +103,26 @@ spec:
|
|||||||
storageClass: standard-rwo
|
storageClass: standard-rwo
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
|
|
||||||
|
# Annotations on the pod template — bumping rollme triggers a
|
||||||
|
# StatefulSet rolling restart (pods 2→1→0) to pick up the
|
||||||
|
# corrected raft retry_join addresses.
|
||||||
|
podAnnotations:
|
||||||
|
rollme: "2026-05-05-raft-join-fix"
|
||||||
|
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
path: "/v1/sys/health?standbyok=true&sealedok=true&uninitcode=200"
|
# standbyok=true: standby pods pass (they serve reads).
|
||||||
|
# sealedok removed: sealed/uninit pods fail readiness so they
|
||||||
|
# leave the service endpoints and stop receiving external traffic.
|
||||||
|
path: "/v1/sys/health?standbyok=true"
|
||||||
initialDelaySeconds: 5
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 5
|
periodSeconds: 5
|
||||||
failureThreshold: 3
|
failureThreshold: 3
|
||||||
|
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
# Liveness keeps sealedok=true so sealed pods aren't killed —
|
||||||
|
# they need time to join raft and auto-unseal.
|
||||||
path: "/v1/sys/health?standbyok=true&sealedok=true&uninitcode=200"
|
path: "/v1/sys/health?standbyok=true&sealedok=true&uninitcode=200"
|
||||||
initialDelaySeconds: 60
|
initialDelaySeconds: 60
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
|
|||||||
Reference in New Issue
Block a user