add consul

HA section
This commit is contained in:
Clint Shryock 2018-10-05 16:33:42 -05:00
parent 061852089a
commit a23a7982a9
No known key found for this signature in database
GPG key ID: B7C8F9C70EC5CD29
2 changed files with 17 additions and 2 deletions

View file

@ -10,6 +10,6 @@ metadata:
heritage: {{ .Release.Service }} heritage: {{ .Release.Service }}
release: {{ .Release.Name }} release: {{ .Release.Name }}
data: data:
extra-from-values.hcl: |- statefulconfig-from-values.hcl: |-
{{ tpl .Values.server.extraConfig . | indent 4 }} {{ tpl .Values.server.storageConfig . | indent 4 }}
{{- end }} {{- end }}

View file

@ -0,0 +1,15 @@
# StatefulSet to run the actual vault server cluster.
{{- if (or (and (ne (.Values.consulHA.enabled | toString) "-") .Values.consulHA.enabled) (and (eq (.Values.consulHA.enabled | toString) "-") .Values.global.enabled)) }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "vault.fullname" . }}-server-storage-config
labels:
app: {{ template "vault.name" . }}
chart: {{ template "vault.chart" . }}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
data:
storageconfig-from-values.hcl: |-
{{ tpl .Values.consulHA.storageConfig . | indent 4 }}
{{- end }}