From f70ed7a2695376a985699e0da859f5c21915b2f7 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 1 Jul 2025 12:01:19 +1000 Subject: [PATCH] ha never straight copy gpt unless it finihses generating lol --- deployments/dns/bind.yaml | 95 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 94 insertions(+), 1 deletion(-) diff --git a/deployments/dns/bind.yaml b/deployments/dns/bind.yaml index a9f6c49..9b17e8b 100644 --- a/deployments/dns/bind.yaml +++ b/deployments/dns/bind.yaml @@ -143,5 +143,98 @@ spec: secret: secretName: dns-secrets - name: config - conf + configMap: + name: bind-master-config + - name: bind-cache + emptyDir: {} + - name: bind-rundir + emptyDir: {} + - name: root-hints + emptyDir: {} +--- +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: bind-slave + namespace: dns +spec: + selector: + matchLabels: + app: bind-slave + template: + metadata: + labels: + app: bind-slave + spec: + hostNetwork: true + dnsPolicy: ClusterFirstWithHostNet + securityContext: + fsGroup: 999 + containers: + - name: bind9 + image: internetsystemsconsortium/bind9:9.18 + ports: + - containerPort: 53 + protocol: UDP + - containerPort: 53 + protocol: TCP + volumeMounts: + - name: config + mountPath: /etc/bind/named.conf + subPath: named.conf + - name: bind-slave-key + subPath: tsig-key.conf + mountPath: /etc/bind/tsig-key.conf + - name: bind-cache + mountPath: /var/cache/bind + - name: bind-rundir + mountPath: /var/run/named + volumes: + - name: config + configMap: + name: bind-slave-config + - name: bind-slave-key + secret: + secretName: bind-slave-key + - name: bind-cache + emptyDir: {} + - name: bind-rundir + emptyDir: {} +--- +apiVersion: v1 +kind: Service +metadata: + name: bind9 + namespace: dns +spec: + type: LoadBalancer + selector: + app: bind-slave + ports: + - name: dns-udp + port: 53 + targetPort: 53 + protocol: UDP + - name: dns-tcp + port: 53 + targetPort: 53 + 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