92 lines
2.1 KiB
YAML
92 lines
2.1 KiB
YAML
![]() |
image:
|
||
|
repository: tccr.io/truecharts/eclipse-mosquitto
|
||
|
tag: v2.0.18@sha256:47613bd942dabd27d0b5ebc5280b3c3af0df38658e74a392f905a9c3f64e0089
|
||
|
pullPolicy: IfNotPresent
|
||
|
|
||
|
service:
|
||
|
main:
|
||
|
ports:
|
||
|
main:
|
||
|
port: 1883
|
||
|
targetPort: 1883
|
||
|
websockets:
|
||
|
enabled: true
|
||
|
ports:
|
||
|
websockets:
|
||
|
enabled: true
|
||
|
port: 9001
|
||
|
targetPort: 9001
|
||
|
|
||
|
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
|
||
|
|
||
|
ingress:
|
||
|
websockets:
|
||
|
autoLink: true
|
||
|
|
||
|
auth:
|
||
|
# -- By enabling this, `allow_anonymous` gets set to `false` in the mosquitto config.
|
||
|
enabled: false
|
||
|
|
||
|
websockets:
|
||
|
# -- By enabling this, an additional listener with protocol websockets is added in the mosquitto config.
|
||
|
enabled: false
|
||
|
|
||
|
configmap:
|
||
|
config:
|
||
|
enabled: true
|
||
|
data:
|
||
|
mosquitto.conf: |
|
||
|
listener {{ .Values.service.main.ports.main.targetPort }}
|
||
|
{{- if .Values.websockets.enabled }}
|
||
|
listener {{ .Values.service.websockets.ports.websockets.targetPort }}
|
||
|
protocol websockets
|
||
|
{{- 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 }}
|
||
|
|
||
|
persistence:
|
||
|
data:
|
||
|
enabled: true
|
||
|
mountPath: "/mosquitto/data"
|
||
|
configinc:
|
||
|
enabled: true
|
||
|
mountPath: "/mosquitto/configinc"
|
||
|
mosquitto-config:
|
||
|
enabled: true
|
||
|
mountPath: "/mosquitto/config/mosquitto.conf"
|
||
|
subPath: "mosquitto.conf"
|
||
|
type: configmap
|
||
|
objectName: config
|
||
|
|
||
|
portal:
|
||
|
open:
|
||
|
enabled: false
|