- 新增 release-charts/mixingx-mqttx:浏览器端 MQTT 客户端 (emqx/mqttx-web), Deployment + Service(ClusterIP) + Ingress(host-based),与 sso/gateway 平级, 供运维通过 Argo CD 随时部署/删除监控各 Edge 的 NanoMQ broker。 - edge-unit/nanomq.yaml:NanoMQ 容器声明 ws containerPort(8083)、Service 加 ws port, 供 MQTTX Web 等浏览器客户端经 ws 连接。Service 保持 ClusterIP, 运维需外部调试时手动改 NodePort。 - edge-unit/values.yaml:新增 mqtt.wsPort(默认 8083)。
28 lines
950 B
YAML
28 lines
950 B
YAML
# MQTTX Web: 浏览器端 MQTT 客户端 (emqx/mqttx-web, 容器内 nginx:80 纯静态 SPA)。
|
||
# 部署后通过浏览器用 WebSocket 连各 Edge 的 NanoMQ,开发/调试 MQTT 流量。
|
||
#
|
||
# 连 NanoMQ 的方式:
|
||
# NanoMQ Service 默认 ClusterIP(外部不可达),运维需把目标 Edge 的 NanoMQ Service
|
||
# 临时改成 NodePort(kubectl patch svc <edge>-nanomq-service -p '{"spec":{"type":"NodePort"}}'
|
||
# 并在 Service 上声明 ws 端口),然后在 MQTTX Web 新建连接填:
|
||
# ws://<节点IP>:<NodePort>/mqtt
|
||
#
|
||
# Ingress:demo 环境有 *.mixingx.local DNS,用 host 暴露;无 DNS 的现场改用 NodePort。
|
||
|
||
timezone: Asia/Shanghai
|
||
|
||
mqttx:
|
||
name: mqttx
|
||
replicas: 1
|
||
image:
|
||
repository: emqx/mqttx-web
|
||
tag: latest
|
||
description: "MQTT 监控客户端"
|
||
|
||
ingress:
|
||
enabled: true
|
||
className: traefik
|
||
host: mqttx.mixingx.local
|
||
annotations:
|
||
traefik.ingress.kubernetes.io/router.entrypoints: web
|