master to internal service, slave to hold nodes port 53

This commit is contained in:
j 2025-07-01 10:58:23 +10:00
parent a5516c4698
commit 690285bc2f

View file

@ -137,6 +137,8 @@ spec:
labels: labels:
app: bind-slave app: bind-slave
spec: spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
containers: containers:
- name: bind9 - name: bind9
image: internetsystemsconsortium/bind9:9.18 image: internetsystemsconsortium/bind9:9.18
@ -179,3 +181,20 @@ spec:
targetPort: 53 targetPort: 53
protocol: TCP protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: bind-master
namespace: dns
spec:
type: ClusterIP
selector:
app: bind-master
ports:
- name: dns-udp
port: 53
protocol: UDP
- name: dns-tcp
port: 53
protocol: TCP