Skip to content

Commit

Permalink
hashicorp#850 Make Vault server readiness probe exec command configur…
Browse files Browse the repository at this point in the history
…able

Signed-off-by: Brian Dunnigan <bdunnigan@clarityinnovates.com>
  • Loading branch information
bdun1013 committed Mar 10, 2023
1 parent f4f05aa commit 17cb7ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
7 changes: 1 addition & 6 deletions templates/server-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,8 @@ spec:
port: 8200
scheme: {{ include "vault.scheme" . | upper }}
{{- else }}
# Check status; unsealed vault servers return 0
# The exit code reflects the seal status:
# 0 - unsealed
# 1 - error
# 2 - sealed
exec:
command: ["/bin/sh", "-ec", "vault status -tls-skip-verify"]
command: {{- toYaml .Values.server.readinessProbe.exec.command | nindent 14 }}
{{- end }}
failureThreshold: {{ .Values.server.readinessProbe.failureThreshold }}
initialDelaySeconds: {{ .Values.server.readinessProbe.initialDelaySeconds }}
Expand Down
9 changes: 9 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,15 @@ server:
# Used to define custom readinessProbe settings
readinessProbe:
enabled: true

# Check status; unsealed vault servers return 0
# The exit code reflects the seal status:
# 0 - unsealed
# 1 - error
# 2 - sealed
exec:
command: ["/bin/sh", "-ec", "vault status -tls-skip-verify"]

# If you need to use a http path instead of the default exec
# path: /v1/sys/health?standbyok=true

Expand Down

0 comments on commit 17cb7ec

Please sign in to comment.