external name and migration plan

This commit is contained in:
2026-02-04 12:42:02 +01:00
parent 8d964a57bc
commit 78f7b942ac
3 changed files with 39 additions and 14 deletions

14
external-name.yml Normal file
View File

@@ -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

View File

@@ -1,33 +1,44 @@
# Broker-Clients im Cluster # 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 - configMap in install-yml.tmpl anpassen und nur configMap neu applyen
## homea/ma ### homea/ma
- config.json in Repo anpassen und neu deployen - config.json in Repo anpassen und neu deployen
## homea/snmp-mqtt ### homea/snmp-mqtt
- config.json in Repo anpassen und pushconfig.sh ausführen - 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 - config.json in Repo anpassen und pushconfig.sh ausführen
## homea/zigbee2mqtt ### homea/zigbee2mqtt
- configmap.yml in Repo anpassen und neu applyen - configmap.yml in Repo anpassen und neu applyen
## homea2/abstraction ### homea2/abstraction
- configmap.yml in Repo anpassen und neu applyen - configmap.yml in Repo anpassen und neu applyen
## homea2/api ### homea2/api
- wie abstraction - wie abstraction
## homea2/pulsegen ### homea2/pulsegen
- wie abstraction - wie abstraction
## homea-ctrl-1/pv-controller ### homea-ctrl-1/pv-controller
- config.yaml in Repo anpassen und neu applyen - 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) - deployment/instances/udi/default/config.json anpassen und conigMap default-udi-conf im Namespace udi neu applyen (siehe deploy.sh)

View File

@@ -1,6 +1,6 @@
pid_file /tmp/mosquitto.pid pid_file /tmp/mosquitto.pid
log_dest stdout log_dest stdout
log_type all log_type warning
persistence true persistence true
persistence_location /mosquitto/data persistence_location /mosquitto/data
@@ -10,20 +10,20 @@ per_listener_settings true
listener 1884 listener 1884
protocol mqtt protocol mqtt
allow_anonymous true allow_anonymous true
acl_file /mosquitto/config/aclfile # acl_file /mosquitto/config/aclfile
listener 1883 listener 1883
protocol mqtt protocol mqtt
allow_anonymous false allow_anonymous false
password_file /mosquitto/config/pwfile password_file /mosquitto/config/pwfile
acl_file /mosquitto/config/aclfile # acl_file /mosquitto/config/aclfile
listener 8883 listener 8883
protocol mqtt protocol mqtt
tls_version tlsv1.2 tls_version tlsv1.2
allow_anonymous false allow_anonymous false
password_file /mosquitto/config/pwfile password_file /mosquitto/config/pwfile
acl_file /mosquitto/config/aclfile # acl_file /mosquitto/config/aclfile
certfile /mosquitto/config/ssl/server.crt certfile /mosquitto/config/ssl/server.crt
keyfile /mosquitto/config/ssl/server.key keyfile /mosquitto/config/ssl/server.key
dhparamfile /mosquitto/config/dhparam.pem dhparamfile /mosquitto/config/dhparam.pem