CoreDNS 的 Windows 端配置

CoreDNS 的 Windows 端配置

我希望 CoreDNS 使用子域转发到 Windows 2016 AD DNS 服务 (Kubernetes.ad.mydomain.com)。我已经创建了委托,有 NS 记录(尽管它说它不具有权威性),并且我在 CoreDNS ConfigMap 中有一个条目,其中包含转发器的 IP。

关于不权威的错误是不可避免的还是配置错误?

# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: v1
data:
  Corefile: |
    k8s.ad-domain.domain.com:53 {
       whoami
       kubernetes cluster.local {
           pods insecure
       }
       k8s_external ad-domain.domain.com
       forward 192.168.0.99 192.168.0.97
    }

    .:53 {
        errors
        health {
           lameduck 5s
        }
        ready
        kubernetes cluster.local in-addr.arpa ip6.arpa {
           pods insecure
           fallthrough in-addr.arpa ip6.arpa
           ttl 30
        }
        prometheus :9153
        forward . /etc/resolv.conf
        cache 30
        loop
        reload
        loadbalance
    }
kind: ConfigMap
metadata:
  name: coredns
  namespace: kube-system

相关内容