From 1a39a8869ae35b04e6c25bff6fff92debf4f9e57 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 22 Nov 2024 22:37:01 -0600 Subject: [PATCH] h-a/mosquitto: Configure Service externalIPs Clients outside the cluster can now communicate with Mosquitto directly on port 8883 by using its dedicated external IP address. This address is automatically assigned to the node where Mosquitto is running by `keepalived`. --- home-assistant/mosquitto.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home-assistant/mosquitto.yaml b/home-assistant/mosquitto.yaml index 8643990..455d589 100644 --- a/home-assistant/mosquitto.yaml +++ b/home-assistant/mosquitto.yaml @@ -26,11 +26,12 @@ spec: ports: - port: 8883 name: mqtt - nodePort: 30783 selector: app.kubernetes.io/component: mosquitto app.kubernetes.io/name: mosquitto - type: NodePort + type: ClusterIP + externalIPs: + - 172.30.0.148 --- apiVersion: apps/v1