Merge "mysql: set hostpath for mysql-data"
This commit is contained in:
commit
9144fdb562
@ -239,8 +239,12 @@ spec:
|
|||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
{{- if not .Values.volume.enabled }}
|
{{- if not .Values.volume.enabled }}
|
||||||
- name: mysql-data
|
- name: mysql-data
|
||||||
|
{{- if .Values.volume.use_local_path_for_single_pod_cluster.enabled }}
|
||||||
|
hostPath: {{ .Values.volume.use_local_path_for_single_pod_cluster.host_path }}
|
||||||
|
{{- else }}
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.volume.enabled }}
|
{{- if .Values.volume.enabled }}
|
||||||
volumeClaimTemplates:
|
volumeClaimTemplates:
|
||||||
- metadata:
|
- metadata:
|
||||||
|
@ -229,6 +229,11 @@ dependencies:
|
|||||||
service: oslo_db
|
service: oslo_db
|
||||||
|
|
||||||
volume:
|
volume:
|
||||||
|
# this value is used for single pod deployments of mariadb to prevent losing all data
|
||||||
|
# if the pod is restarted
|
||||||
|
use_local_path_for_single_pod:
|
||||||
|
enabled: false
|
||||||
|
host_path: "/tmp/mysql-data"
|
||||||
chown_on_start: true
|
chown_on_start: true
|
||||||
enabled: true
|
enabled: true
|
||||||
class_name: general
|
class_name: general
|
||||||
|
Loading…
Reference in New Issue
Block a user