feat(k8s): use mqtt service endpoint url

closes #1
This commit is contained in:
Cyrille Nofficial 2022-06-07 19:11:15 +02:00
parent d558415684
commit 3c80b4a970
3 changed files with 4 additions and 9 deletions

View File

@ -117,10 +117,7 @@ spec:
mountPath: /dev mountPath: /dev
env: env:
- name: MQTT_BROKER - name: MQTT_BROKER
valueFrom: value: localhost # because use host network
configMapKeyRef:
key: MQTT_BROKER_HOST
name: robocar
- name: MQTT_USERNAME - name: MQTT_USERNAME
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:

View File

@ -4,11 +4,8 @@ metadata:
name: robocar name: robocar
data: data:
# Broker configuration # Broker configuration
#MQTT_BROKER_HOST: 192.168.217.19 MQTT_BROKER_HOST: mqtt.robocar.svc.cluster.local
#MQTT_BROKER: "tcp://192.168.217.19:1883" MQTT_BROKER: "tcp://mqtt.robocar.svc.cluster.local:1883"
MQTT_BROKER_HOST: 192.168.2.221
MQTT_BROKER: "tcp://192.168.2.221:1883"
#MQTT_BROKER: "tcp://mqtt.robocar.svc.cluster.local:1883"
# Camera # Camera
MQTT_TOPIC_CAMERA: car/satanas/part/camera/camera/color MQTT_TOPIC_CAMERA: car/satanas/part/camera/camera/color

View File

@ -8,5 +8,6 @@ metadata:
subsets: subsets:
- addresses: - addresses:
- ip: 192.168.2.221 - ip: 192.168.2.221
# - ip: 192.168.217.19
ports: ports:
- port: 1883 - port: 1883