2021-06-11 15:18:00 +00:00
|
|
|
image:
|
2021-12-03 12:02:44 +00:00
|
|
|
repository: tccr.io/truecharts/eclipse-mosquitto
|
2022-07-25 18:36:51 +00:00
|
|
|
tag: v2.0.14@sha256:1602c5f074318d37f05e78f82e01fd9c22fa2d5616fc10eb2f8c8d0c7e5b2913
|
2021-06-11 15:18:00 +00:00
|
|
|
pullPolicy: IfNotPresent
|
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 1883
|
2021-11-06 21:55:18 +00:00
|
|
|
targetPort: 1883
|
2021-06-11 15:18:00 +00:00
|
|
|
|
|
|
|
auth:
|
|
|
|
# -- By enabling this, `allow_anonymous` gets set to `false` in the mosquitto config.
|
|
|
|
enabled: false
|
|
|
|
|
2022-06-07 17:41:19 +00:00
|
|
|
configmap:
|
|
|
|
config:
|
|
|
|
enabled: true
|
|
|
|
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 }}
|
|
|
|
|
2021-06-11 15:18:00 +00:00
|
|
|
persistence:
|
|
|
|
data:
|
2021-08-29 12:02:17 +00:00
|
|
|
enabled: true
|
2021-11-14 19:19:16 +00:00
|
|
|
mountPath: "/mosquitto/data"
|
2021-06-11 15:18:00 +00:00
|
|
|
configinc:
|
2021-08-29 12:02:17 +00:00
|
|
|
enabled: true
|
2021-11-14 19:19:16 +00:00
|
|
|
mountPath: "/mosquitto/configinc"
|
2022-06-07 17:41:19 +00:00
|
|
|
mosquitto-config:
|
|
|
|
enabled: "true"
|
|
|
|
mountPath: "/mosquitto/config/mosquitto.conf"
|
|
|
|
subPath: "mosquitto.conf"
|
|
|
|
type: "custom"
|
|
|
|
volumeSpec:
|
|
|
|
configMap:
|
|
|
|
name: '{{ template "tc.common.names.fullname" . }}-config'
|