Merge "rabbitmq: set hostPath for rabbitmq-data"

This commit is contained in:
Zuul 2019-06-18 14:46:15 +00:00 committed by Gerrit Code Review
commit b2f47aabb1
2 changed files with 9 additions and 0 deletions

View File

@ -247,8 +247,14 @@ spec:
defaultMode: 0444
{{- if not $envAll.Values.volume.enabled }}
- name: rabbitmq-data
{{- if .Values.volume.use_local_path.enabled }}
hostPath:
path: {{ .Values.volume.use_local_path.host_path }}
type: DirectoryOrCreate
{{- else }}
emptyDir: {}
{{- end }}
{{- end }}
{{- if $envAll.Values.volume.enabled }}
volumeClaimTemplates:
- metadata:

View File

@ -325,6 +325,9 @@ network_policy:
- {}
volume:
use_local_path:
enabled: false
host_path: /var/lib/rabbitmq
chown_on_start: true
enabled: true
class_name: general