add consul
HA section
This commit is contained in:
parent
061852089a
commit
a23a7982a9
2 changed files with 17 additions and 2 deletions
|
@ -10,6 +10,6 @@ metadata:
|
|||
heritage: {{ .Release.Service }}
|
||||
release: {{ .Release.Name }}
|
||||
data:
|
||||
extra-from-values.hcl: |-
|
||||
{{ tpl .Values.server.extraConfig . | indent 4 }}
|
||||
statefulconfig-from-values.hcl: |-
|
||||
{{ tpl .Values.server.storageConfig . | indent 4 }}
|
||||
{{- end }}
|
||||
|
|
15
templates/server-storage-configmap.yaml
Normal file
15
templates/server-storage-configmap.yaml
Normal 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 }}
|
Loading…
Reference in a new issue