2021-06-11 11:18:00 -04:00
|
|
|
image:
|
2021-12-03 07:02:44 -05:00
|
|
|
repository: tccr.io/truecharts/eclipse-mosquitto
|
2023-09-28 23:35:35 -04:00
|
|
|
tag: v2.0.18@sha256:47613bd942dabd27d0b5ebc5280b3c3af0df38658e74a392f905a9c3f64e0089
|
2021-06-11 11:18:00 -04:00
|
|
|
pullPolicy: IfNotPresent
|
|
|
|
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 1883
|
2021-11-06 17:55:18 -04:00
|
|
|
targetPort: 1883
|
2022-09-26 06:14:21 -04:00
|
|
|
websockets:
|
|
|
|
enabled: true
|
|
|
|
ports:
|
|
|
|
websockets:
|
|
|
|
enabled: true
|
|
|
|
port: 9001
|
|
|
|
targetPort: 9001
|
2021-06-11 11:18:00 -04:00
|
|
|
|
2023-06-08 20:08:07 -04: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 10:32:24 -04:00
|
|
|
ingress:
|
|
|
|
websockets:
|
|
|
|
autoLink: true
|
|
|
|
|
2021-06-11 11:18:00 -04:00
|
|
|
auth:
|
|
|
|
# -- By enabling this, `allow_anonymous` gets set to `false` in the mosquitto config.
|
|
|
|
enabled: false
|
|
|
|
|
2022-09-26 06:14:21 -04:00
|
|
|
websockets:
|
|
|
|
# -- By enabling this, an additional listener with protocol websockets is added in the mosquitto config.
|
|
|
|
enabled: false
|
|
|
|
|
2022-06-07 13:41:19 -04:00
|
|
|
configmap:
|
|
|
|
config:
|
|
|
|
enabled: true
|
|
|
|
data:
|
|
|
|
mosquitto.conf: |
|
2022-09-26 09:03:54 -04:00
|
|
|
listener {{ .Values.service.main.ports.main.targetPort }}
|
2022-09-26 06:14:21 -04:00
|
|
|
{{- if .Values.websockets.enabled }}
|
|
|
|
listener {{ .Values.service.websockets.ports.websockets.targetPort }}
|
|
|
|
protocol websockets
|
|
|
|
{{- end }}
|
2022-06-07 13:41:19 -04: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 11:18:00 -04:00
|
|
|
persistence:
|
|
|
|
data:
|
2021-08-29 08:02:17 -04:00
|
|
|
enabled: true
|
2021-11-14 14:19:16 -05:00
|
|
|
mountPath: "/mosquitto/data"
|
2021-06-11 11:18:00 -04:00
|
|
|
configinc:
|
2021-08-29 08:02:17 -04:00
|
|
|
enabled: true
|
2021-11-14 14:19:16 -05:00
|
|
|
mountPath: "/mosquitto/configinc"
|
2022-06-07 13:41:19 -04:00
|
|
|
mosquitto-config:
|
2023-06-08 20:08:07 -04:00
|
|
|
enabled: true
|
2022-06-07 13:41:19 -04:00
|
|
|
mountPath: "/mosquitto/config/mosquitto.conf"
|
|
|
|
subPath: "mosquitto.conf"
|
2023-06-08 20:08:07 -04:00
|
|
|
type: configmap
|
|
|
|
objectName: config
|
2022-08-08 17:25:02 -04:00
|
|
|
|
|
|
|
portal:
|
2023-06-08 20:08:07 -04:00
|
|
|
open:
|
|
|
|
enabled: false
|