diff --git a/templates/server-statefulset.yaml b/templates/server-statefulset.yaml index 3fe0b3d5e..5de72c277 100644 --- a/templates/server-statefulset.yaml +++ b/templates/server-statefulset.yaml @@ -96,5 +96,8 @@ spec: periodSeconds: 3 successThreshold: 1 timeoutSeconds: 5 +{{- with .Values.server.extraContainers }} +{{ tpl . $ | indent 8 }} +{{- end }} {{ template "vault.volumeclaims" . }} {{ end }} diff --git a/values.yaml b/values.yaml index cb4d4d61b..69cb7cc2b 100644 --- a/values.yaml +++ b/values.yaml @@ -46,6 +46,19 @@ server: # method. https://www.vaultproject.io/docs/auth/kubernetes.html authDelegator: enabled: false + + # extra Container + extraContainers: | + - name: vault-exporter + image: grapeshot/vault_exporter:v0.1.2 + ports: + - name: metrics + containerPort: 9410 + protocol: TCP + env: + - name: VAULT_ADDR + value: "http://127.0.0.1:8200" + # extraEnvironmentVars is a list of extra enviroment variables to set with the stateful set. These could be # used to include variables required for auto-unseal.