mirror of
https://github.com/bitnami/charts.git
synced 2026-03-03 15:07:37 +08:00
[bitnami/consul] fix volume path for persistence (#1892)
The volume for data persistence was wrongly mounted at `/bitnami/consul/data`. No data gets persisted at this location.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: consul
|
||||
version: 6.0.15
|
||||
version: 6.1.0
|
||||
appVersion: 1.6.3
|
||||
description: Highly available and distributed service discovery and key-value store designed with support for the modern data center to make distributed systems and configuration easy.
|
||||
home: https://www.consul.io/
|
||||
|
||||
@@ -50,7 +50,7 @@ spec:
|
||||
- /bin/bash
|
||||
- -ec
|
||||
- |
|
||||
chown -R {{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.fsGroup }} /bitnami/consul/data
|
||||
chown -R {{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.fsGroup }} /bitnami/consul
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
{{- if .Values.volumePermissions.resources }}
|
||||
@@ -58,7 +58,7 @@ spec:
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /bitnami/consul/data
|
||||
mountPath: /bitnami/consul
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: consul
|
||||
@@ -166,7 +166,7 @@ spec:
|
||||
{{- end }}
|
||||
{{- if .Values.persistence.enabled }}
|
||||
- name: data
|
||||
mountPath: /bitnami/consul/data
|
||||
mountPath: /bitnami/consul
|
||||
{{- end }}
|
||||
{{- if .Values.configmap }}
|
||||
- name: consul-config
|
||||
|
||||
Reference in New Issue
Block a user