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
env:
- name: MQTT_BROKER
valueFrom:
configMapKeyRef:
key: MQTT_BROKER_HOST
name: robocar
value: localhost # because use host network
- name: MQTT_USERNAME
valueFrom:
secretKeyRef:

View File

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

View File

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