Files
mgmt/chart/mgmt-suite/templates/mosquitto-configmap.yaml
scott 901f4eb328 Add optional bundled Mosquitto pod to Helm chart
Mirrors the Postgres pattern: mosquitto.enabled deploys a bundled
Mosquitto pod with service, PVC, and configmap. When disabled,
mosquitto.external.host points to an external broker (e.g., Amazon MQ)
with TLS and credentials. When neither is set, MQTT is disabled
entirely and announcements fall back to REST polling.

Bundled mode: eclipse-mosquitto:2, ports 1883 (MQTT) + 9001 (WS),
anonymous access, 256Mi persistence, minimal resources (25m/32Mi).

External mode: configurable TLS, port, wsUrl, username/password
injected via K8s Secret.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-07 16:43:54 -07:00

21 lines
462 B
YAML

{{- if .Values.mosquitto.enabled }}
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "osa-suite.mosquittoName" . }}-config
labels:
app.kubernetes.io/component: mosquitto
{{- include "osa-suite.labels" . | nindent 4 }}
data:
mosquitto.conf: |
listener 1883 0.0.0.0
listener 9001 0.0.0.0
protocol websockets
allow_anonymous true
persistence true
persistence_location /mosquitto/data/
log_dest stdout
{{- end }}