2021-06-11 15:18:00 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: ConfigMap
|
|
|
|
metadata:
|
|
|
|
name: {{ template "common.names.fullname" . }}-config
|
|
|
|
labels:
|
|
|
|
{{- include "common.labels" . | nindent 4 }}
|
|
|
|
data:
|
|
|
|
mosquitto.conf: |
|
2021-06-14 20:27:25 +00:00
|
|
|
listener {{ .Values.service.main.ports.main.port }}
|
2021-06-11 15:18:00 +00:00
|
|
|
{{- if .Values.auth.enabled }}
|
|
|
|
allow_anonymous false
|
|
|
|
{{- else }}
|
|
|
|
allow_anonymous true
|
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.persistence.data.enabled }}
|
|
|
|
persistence true
|
|
|
|
persistence_location {{ .Values.persistence.data.mountPath }}
|
|
|
|
autosave_interval 1800
|
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.persistence.configinc.enabled }}
|
|
|
|
include_dir {{ .Values.persistence.configinc.mountPath }}
|
|
|
|
{{- end }}
|