22 lines
464 B
YAML
22 lines
464 B
YAML
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: mosquitto
|
|
annotations:
|
|
metallb.universe.tf/allow-shared-ip: share222
|
|
spec:
|
|
selector:
|
|
app: mosquitto
|
|
type: LoadBalancer
|
|
# loadBalancerIP is optional. MetalLB will automatically allocate an IP
|
|
# from its pool if not specified. You can also specify one manually.
|
|
# loadBalancerIP: x.y.z.a
|
|
loadBalancerIP: 192.168.7.222
|
|
ports:
|
|
- name: port1883
|
|
protocol: TCP
|
|
port: 1883
|
|
|
|
# EOF
|