You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
812 B
YAML
28 lines
812 B
YAML
{{- include "common.values.setup" . -}}
|
|
---
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ template "common.names.fullname" . }}-config
|
|
labels:
|
|
{{- include "common.labels" . | nindent 4 }}
|
|
data:
|
|
mosquitto.conf: |
|
|
per_listener_settings {{ .Values.perListenerSettings }}
|
|
{{- if .Values.addListener }}
|
|
listener {{ .Values.service.main.ports.mqtt.port }}
|
|
{{- end}}
|
|
{{- 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 }}
|