fix(dns): Trying with both UDP and TCP on the same Service again

This commit is contained in:
Vegard Hagen
2024-03-09 10:23:19 +01:00
parent eae119a45c
commit e819f3f26e
2 changed files with 9 additions and 39 deletions

View File

@@ -5,7 +5,6 @@ metadata:
namespace: net-aux
annotations:
io.cilium/lb-ipam-ips: 192.168.1.153
io.cilium/lb-ipam-sharing-key: net-aux
spec:
selector:
app: net-aux
@@ -15,32 +14,18 @@ spec:
port: 5335
protocol: TCP
targetPort: unbound-dns-tcp
- name: dns-tcp
port: 53
protocol: TCP
targetPort: dns-tcp
- name: http
port: 80
targetPort: http
---
kind: Service
apiVersion: v1
metadata:
name: net-aux-udp
namespace: net-aux
# annotations:
# io.cilium/lb-ipam-ips: 192.168.1.153
# io.cilium/lb-ipam-sharing-key: net-aux
spec:
selector:
app: net-aux
type: LoadBalancer
ports:
- name: unbound-dns-udp
port: 5335
protocol: UDP
targetPort: unbound-dns-udp
- name: dns-tcp
port: 53
protocol: TCP
targetPort: dns-tcp
- name: dns-udp
port: 53
protocol: UDP
targetPort: dns-udp
targetPort: dns-udp
- name: http
port: 80
targetPort: http

View File

@@ -5,7 +5,6 @@ metadata:
namespace: pi-hole
annotations:
io.cilium/lb-ipam-ips: 192.168.1.154
io.cilium/lb-ipam-sharing-key: pi-hole
spec:
selector:
app: pi-hole
@@ -18,21 +17,7 @@ spec:
port: 53
protocol: TCP
targetPort: dns-tcp
---
kind: Service
apiVersion: v1
metadata:
name: pi-hole-udp
namespace: pi-hole
# annotations:
# io.cilium/lb-ipam-ips: 192.168.1.154
# io.cilium/lb-ipam-sharing-key: pi-hole
spec:
selector:
app: pi-hole
type: LoadBalancer
ports:
- name: dns-udp
port: 53
protocol: UDP
targetPort: dns-udp
targetPort: dns-udp