apiVersion: v1 kind: Pod metadata: name: test-knot spec: containers: - name: test-knot image: cznic/knot:3.0 args: - knotd ports: - name: udp-53 containerPort: 53 protocol: UDP - name: tcp-53 containerPort: 53 protocol: TCP volumeMounts: - name: config mountPath: "/config" volumes: - name: config configMap: name: test-knot-config --- apiVersion: v1 kind: ConfigMap metadata: name: test-knot-config data: knot.conf: | server: listen: 0.0.0.0@53 listen: ::@53 log: - target: stdout zone: - domain: example.com file: /config/example.com example.com: | $TTL 60 @ IN SOA dns3.ungleich.ch. root.ungleich.ch. ( 2021021800 ; serial number of this zone file 1d ; slave refresh (1 day) 2h ; slave retry time in case of a problem (2 hours) 4w ; slave expiration time (4 weeks) 1w ; maximum caching time in case of failed lookups (1 hour) ) NS dns1.ungleich.ch. test AAAA 2a0a:e5c0:13::42