2021-06-11 15:18:00 +00:00
|
|
|
image:
|
2023-11-17 10:22:57 +00:00
|
|
|
repository: eclipse-mosquitto
|
2024-01-29 00:31:31 +00:00
|
|
|
tag: 2.0.18@sha256:da38d58ee0037af94f746dc3d884c57f50140ef5f592bf6fcbb80d66d131a77b
|
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
|
2022-09-26 10:14:21 +00:00
|
|
|
websockets:
|
|
|
|
enabled: true
|
|
|
|
ports:
|
|
|
|
websockets:
|
|
|
|
enabled: true
|
|
|
|
port: 9001
|
|
|
|
targetPort: 9001
|
2023-06-09 00:08:07 +00:00
|
|
|
workload:
|
|
|
|
main:
|
|
|
|
podSpec:
|
|
|
|
containers:
|
|
|
|
main:
|
|
|
|
probes:
|
|
|
|
liveness:
|
|
|
|
enabled: true
|
|
|
|
type: tcp
|
|
|
|
port: 1883
|
|
|
|
readiness:
|
|
|
|
enabled: true
|
|
|
|
type: tcp
|
|
|
|
port: 1883
|
|
|
|
startup:
|
|
|
|
enabled: true
|
|
|
|
type: tcp
|
|
|
|
port: 1883
|
2022-09-26 14:32:24 +00:00
|
|
|
ingress:
|
|
|
|
websockets:
|
2023-12-21 08:57:01 +00:00
|
|
|
targetSelector:
|
|
|
|
websockets: websockets
|
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-09-26 10:14:21 +00:00
|
|
|
websockets:
|
|
|
|
# -- By enabling this, an additional listener with protocol websockets is added in the mosquitto config.
|
|
|
|
enabled: false
|
2022-06-07 17:41:19 +00:00
|
|
|
configmap:
|
|
|
|
config:
|
|
|
|
enabled: true
|
|
|
|
data:
|
|
|
|
mosquitto.conf: |
|
2022-09-26 13:03:54 +00:00
|
|
|
listener {{ .Values.service.main.ports.main.targetPort }}
|
2022-09-26 10:14:21 +00:00
|
|
|
{{- if .Values.websockets.enabled }}
|
|
|
|
listener {{ .Values.service.websockets.ports.websockets.targetPort }}
|
|
|
|
protocol websockets
|
|
|
|
{{- end }}
|
2022-06-07 17:41:19 +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 }}
|
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:
|
2023-06-09 00:08:07 +00:00
|
|
|
enabled: true
|
2022-06-07 17:41:19 +00:00
|
|
|
mountPath: "/mosquitto/config/mosquitto.conf"
|
|
|
|
subPath: "mosquitto.conf"
|
2023-06-09 00:08:07 +00:00
|
|
|
type: configmap
|
|
|
|
objectName: config
|
2022-08-08 21:25:02 +00:00
|
|
|
portal:
|
2023-06-09 00:08:07 +00:00
|
|
|
open:
|
|
|
|
enabled: false
|