update config - only on HA for now, may need to split things out
This commit is contained in:
parent
b0944d48df
commit
678c50bb72
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
# StatefulSet to run the actual vault server cluster.
|
# StatefulSet to run the actual vault server cluster.
|
||||||
{{- if (or (and (ne (.Values.server.enabled | toString) "-") .Values.server.enabled) (and (eq (.Values.server.enabled | toString) "-") .Values.global.enabled)) }}
|
{{- if (or (and (ne (.Values.consulHA.enabled | toString) "-") .Values.consulHA.enabled) (and (eq (.Values.consulHA.enabled | toString) "-") .Values.global.enabled)) }}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -11,5 +11,5 @@ metadata:
|
||||||
release: {{ .Release.Name }}
|
release: {{ .Release.Name }}
|
||||||
data:
|
data:
|
||||||
statefulconfig-from-values.hcl: |-
|
statefulconfig-from-values.hcl: |-
|
||||||
{{ tpl .Values.server.config . | indent 4 }}
|
{{ tpl .Values.consulHA.config . | indent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -79,7 +79,7 @@ spec:
|
||||||
- |
|
- |
|
||||||
export VAULT_CLUSTER_ADDR=http://${POD_IP}:8201
|
export VAULT_CLUSTER_ADDR=http://${POD_IP}:8201
|
||||||
|
|
||||||
sed -E "s/HOST_IP/${HOST_IP}/g" /vault/config/storageconfig-from-values.hcl > storageconfig.hcl
|
sed -E "s/HOST_IP/${HOST_IP}/g" /vault/config/statefulconfig-from-values.hcl > storageconfig.hcl
|
||||||
sed -Ei "s/POD_IP/${POD_IP}/g" storageconfig.hcl
|
sed -Ei "s/POD_IP/${POD_IP}/g" storageconfig.hcl
|
||||||
|
|
||||||
vault server -config=storageconfig.hcl
|
vault server -config=storageconfig.hcl
|
||||||
|
|
Loading…
Reference in a new issue