charts/charts/stable/mosquitto/templates/configmap.yaml

23 lines
660 B
YAML
Raw Normal View History

2020-09-11 11:46:25 +00:00
apiVersion: v1
kind: ConfigMap
metadata:
2021-02-28 09:07:26 +00:00
name: {{ template "common.names.fullname" . }}-config
2020-09-11 11:46:25 +00:00
labels:
2021-02-28 09:07:26 +00:00
{{- include "common.labels" . | nindent 4 }}
2020-09-11 11:46:25 +00:00
data:
mosquitto.conf: |
listener {{ .Values.service.main.ports.mqtt.port }}
2021-03-14 21:41:35 +00:00
{{- if .Values.auth.enabled }}
allow_anonymous false
{{- else }}
2021-02-28 09:07:26 +00:00
allow_anonymous true
2021-03-14 21:41:35 +00:00
{{- end }}
2021-02-28 09:07:26 +00:00
{{- if .Values.persistence.data.enabled }}
2020-09-11 11:46:25 +00:00
persistence true
2021-02-28 09:07:26 +00:00
persistence_location {{ .Values.persistence.data.mountPath }}
autosave_interval 1800
2020-09-11 11:46:25 +00:00
{{- end }}
2021-03-14 21:41:35 +00:00
{{- if .Values.persistence.configinc.enabled }}
include_dir {{ .Values.persistence.configinc.mountPath }}
{{- end }}