JG-mirror/Mosquitto/Kubernetes/service.yaml
2024-07-08 11:19:54 +01:00

22 lines
No EOL
382 B
YAML

apiVersion: v1
kind: Service
metadata:
labels:
app: mosquitto
name: mosquitto
namespace: mosquitto
spec:
ports:
- name: mqtt
port: 1883
protocol: TCP
targetPort: 1883
- name: websocket
port: 9001
protocol: TCP
targetPort: 9001
selector:
app: mosquitto
externalTrafficPolicy: Local
loadBalancerIP: 192.168.200.14
type: LoadBalancer