mirror of
https://github.com/outbackdingo/netmaker-helm.git
synced 2026-01-27 10:19:46 +00:00
Merge pull request #29 from HuruPlatform/master
Add existingClaim support for mq
This commit is contained in:
@@ -85,7 +85,11 @@ spec:
|
||||
name: wait-script
|
||||
- name: shared-data
|
||||
persistentVolumeClaim:
|
||||
{{- if not .Values.mq.existingClaim }}
|
||||
claimName: {{ .Values.mq.existingClaim }}
|
||||
{{- else }}
|
||||
claimName: {{ include "netmaker.fullname" . }}-shared-data-pvc
|
||||
{{- end }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
@@ -105,6 +109,7 @@ spec:
|
||||
app: {{ include "netmaker.fullname" . }}-mqtt
|
||||
sessionAffinity: None
|
||||
---
|
||||
{{- if not .Values.mq.existingClaim }}
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
@@ -117,6 +122,7 @@ spec:
|
||||
requests:
|
||||
storage: {{ .Values.mq.storageSize }}
|
||||
---
|
||||
{{- end }}
|
||||
apiVersion: v1
|
||||
data:
|
||||
mosquitto.conf: |
|
||||
|
||||
Reference in New Issue
Block a user