k8s_pihole-1/pihole-1_lb.yml

44 lines
777 B
YAML
Raw Normal View History

2021-10-26 14:22:05 -04:00
---
apiVersion: v1
kind: Service
metadata:
name: pihole-1-tcp
annotations:
metallb.universe.tf/address-pool: default
metallb.universe.tf/allow-shared-ip: "dot83"
2021-10-26 14:22:05 -04:00
spec:
externalTrafficPolicy: Local
2022-11-19 08:01:09 -05:00
loadBalancerIP: 192.168.20.83
2021-10-26 14:22:05 -04:00
ports:
- port: 53
targetPort: 53
name: tcp53
- port: 80
targetPort: 80
name: tcp80
selector:
app: pihole-1
type: LoadBalancer
---
apiVersion: v1
kind: Service
metadata:
name: pihole-1-udp
annotations:
metallb.universe.tf/address-pool: default
metallb.universe.tf/allow-shared-ip: "dot83"
2021-10-26 14:22:05 -04:00
spec:
externalTrafficPolicy: Local
2022-11-19 08:01:09 -05:00
loadBalancerIP: 192.168.20.83
2021-10-26 14:22:05 -04:00
ports:
- port: 53
targetPort: 53
name: udp53
protocol: UDP
selector:
app: pihole-1
type: LoadBalancer
# EOF