rabbitmq: set hostPath for rabbitmq-data

In an Edge environment without a distributed storage environment, it
should be able to store rabbitmq data in the local path as well.

This patch added an option to use it in a more diverse environment.

Change-Id: Ia3c0dfaa58c237e424197f1406bd66fb991bea18
Story: 2005753
Task: 33455
This commit is contained in:
Jaesang Lee 2019-05-22 02:17:22 +00:00
parent 9144fdb562
commit 9ddc98746c
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

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