23 lines
660 B
YAML
23 lines
660 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ template "common.names.fullname" . }}-config
|
|
labels:
|
|
{{- include "common.labels" . | nindent 4 }}
|
|
data:
|
|
mosquitto.conf: |
|
|
listener {{ .Values.service.main.ports.main.port }}
|
|
{{- 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 }}
|