--- apiVersion: v1 kind: Service metadata: name: bind9-service labels: app: bind9 spec: selector: app: bind9 type: NodePort ports: - protocol: TCP port: 5353 targetPort: 53 nodePort: 30053 name: bind9-tcp - protocol: UDP port: 5353 targetPort: 53 nodePort: 30053 name: bind9 --- apiVersion: apps/v1 kind: Deployment metadata: name: bind9-deployment spec: replicas: 1 selector: matchLabels: app: bind9 template: metadata: labels: app: bind9 spec: containers: - name: bind9 image: ubuntu/bind9:9.18-24.04_edge env: ports: - containerPort: 53 protocol: TCP - containerPort: 53 protocol: UDP volumeMounts: - name: bind9-config-options mountPath: /etc/bind/named.conf.options subPath: named.conf.options volumes: - name: bind9-config-options configMap: name: bind9.config.options