Merge "mysql: set hostpath for mysql-data"

This commit is contained in:
Zuul 2019-05-21 22:15:58 +00:00 committed by Gerrit Code Review
commit 9144fdb562
2 changed files with 9 additions and 0 deletions

View File

@ -239,8 +239,12 @@ spec:
defaultMode: 0444
{{- if not .Values.volume.enabled }}
- 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: {}
{{- end }}
{{- end }}
{{- if .Values.volume.enabled }}
volumeClaimTemplates:
- metadata:

View File

@ -229,6 +229,11 @@ dependencies:
service: oslo_db
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
enabled: true
class_name: general