Skip to content

Commit

Permalink
Add extra containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahbaz Nazir committed Oct 21, 2019
1 parent d696408 commit e8a1adf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/server-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,8 @@ spec:
periodSeconds: 3
successThreshold: 1
timeoutSeconds: 5
{{- with .Values.server.extraContainers }}
{{ tpl . $ | indent 8 }}
{{- end }}
{{ template "vault.volumeclaims" . }}
{{ end }}
13 changes: 13 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e8a1adf

Please sign in to comment.