From 78f7b942aca697fcc8be86dab8b78e89fce349ab Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 4 Feb 2026 12:42:02 +0100 Subject: [PATCH] external name and migration plan --- external-name.yml | 14 ++++++++++++++ migration.txt | 31 +++++++++++++++++++++---------- mosquitto.conf | 8 ++++---- 3 files changed, 39 insertions(+), 14 deletions(-) create mode 100644 external-name.yml diff --git a/external-name.yml b/external-name.yml new file mode 100644 index 0000000..12d9c89 --- /dev/null +++ b/external-name.yml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: broker +--- +apiVersion: v1 +kind: Service +metadata: + name: emqx01-anonymous-cluster-internal + namespace: broker +spec: + type: ExternalName + externalName: mosquitto-broker-mqtt-anon-cluster.mosquitto.svc.cluster.local + diff --git a/migration.txt b/migration.txt index 66775aa..a2d2701 100644 --- a/migration.txt +++ b/migration.txt @@ -1,33 +1,44 @@ # Broker-Clients im Cluster -## homea/digitaltwin +## First step: + + - remove all existing services in namespace broker + - create externalName emqx01-anonymous-cluster-internal.broker.svc.cluster.local in namespace broker + - check whether services in namespace mosquitto get addresses + - check whether applications connect via externalName to mosquitto + +## Second step: + +Change applications + +### homea/digitaltwin - configMap in install-yml.tmpl anpassen und nur configMap neu applyen -## homea/ma +### homea/ma - config.json in Repo anpassen und neu deployen -## homea/snmp-mqtt +### homea/snmp-mqtt - config.json in Repo anpassen und pushconfig.sh ausführen -## homea/tsm-mqtt +### homea/tsm-mqtt - config.json in Repo anpassen und pushconfig.sh ausführen -## homea/zigbee2mqtt +### homea/zigbee2mqtt - configmap.yml in Repo anpassen und neu applyen -## homea2/abstraction +### homea2/abstraction - configmap.yml in Repo anpassen und neu applyen -## homea2/api +### homea2/api - wie abstraction -## homea2/pulsegen +### homea2/pulsegen - wie abstraction -## homea-ctrl-1/pv-controller +### homea-ctrl-1/pv-controller - config.yaml in Repo anpassen und neu applyen -## udi/default-udi +### udi/default-udi - deployment/instances/udi/default/config.json anpassen und conigMap default-udi-conf im Namespace udi neu applyen (siehe deploy.sh) diff --git a/mosquitto.conf b/mosquitto.conf index 869d949..738ddf1 100644 --- a/mosquitto.conf +++ b/mosquitto.conf @@ -1,6 +1,6 @@ pid_file /tmp/mosquitto.pid log_dest stdout -log_type all +log_type warning persistence true persistence_location /mosquitto/data @@ -10,20 +10,20 @@ per_listener_settings true listener 1884 protocol mqtt allow_anonymous true -acl_file /mosquitto/config/aclfile +# acl_file /mosquitto/config/aclfile listener 1883 protocol mqtt allow_anonymous false password_file /mosquitto/config/pwfile -acl_file /mosquitto/config/aclfile +# acl_file /mosquitto/config/aclfile listener 8883 protocol mqtt tls_version tlsv1.2 allow_anonymous false password_file /mosquitto/config/pwfile -acl_file /mosquitto/config/aclfile +# acl_file /mosquitto/config/aclfile certfile /mosquitto/config/ssl/server.crt keyfile /mosquitto/config/ssl/server.key dhparamfile /mosquitto/config/dhparam.pem