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`.
This commit is contained in:
@@ -26,11 +26,12 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- port: 8883
|
- port: 8883
|
||||||
name: mqtt
|
name: mqtt
|
||||||
nodePort: 30783
|
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/component: mosquitto
|
app.kubernetes.io/component: mosquitto
|
||||||
app.kubernetes.io/name: mosquitto
|
app.kubernetes.io/name: mosquitto
|
||||||
type: NodePort
|
type: ClusterIP
|
||||||
|
externalIPs:
|
||||||
|
- 172.30.0.148
|
||||||
|
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
|
|||||||
Reference in New Issue
Block a user