feat(unit): 添加MQTT凭据配置和NanoMQ代理支持

- 在mixingx-agent-unit中添加mqttCredentials配置项,用于存储MQTT凭据映射表
- 在unit.yaml模板中添加MQTT凭据相关的环境变量配置循环
- 为mixingx-edge-unit添加NanoMQ代理的服务名称和凭据引用的helper模板
- 配置Edge单元的MQTT相关环境变量(Mqtt__BrokerHost、Mqtt__BrokerPort、Mqtt__Enabled)
- 添加NanoMQ代理的镜像配置、端口和资源配置选项
This commit is contained in:
王野 committed 2026-08-03 00:30:03 +08:00
1 parent 5e83675edf
commit 28011f1154
6 files changed
+97

No files matched your search

@@ -4,6 +4,7 @@
{{- $serviceId := include "mixingx-unit.serviceId" . -}}
{{- $basePath := include "mixingx-unit.basePath" . -}}
{{- $pgHost := printf "%s-postgres-service" $name -}}
{{- $brokerSvcName := include "mixingx-unit.mqttBrokerServiceName" . -}}
---
apiVersion: apps/v1
kind: Deployment
@@ -100,6 +101,9 @@ data:
OTEL_EXPORTER_OTLP_ENDPOINT: "{{ .Values.sharedInfra.otlp.endpoint }}"
OTEL_EXPORTER_OTLP_PROTOCOL: "{{ .Values.sharedInfra.otlp.protocol }}"
OTEL_SERVICE_NAME: "{{ $name }}"
Mqtt__BrokerHost: "{{ $brokerSvcName }}"
Mqtt__BrokerPort: "{{ .Values.mqtt.port }}"
Mqtt__Enabled: "true"
ASPNETCORE_FORWARDEDHEADERS_ENABLED: "true"
---
apiVersion: v1