K8S DNS CoreDNS

安装

helm

https://github.com/coredns/helm

1
2
helm repo add coredns https://coredns.github.io/helm
helm pull coredns coredns/coredns
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Corefile: |
.:53 {
errors
health
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
upstream 172.16.20.132 172.16.20.133 # /etc/resolv.conf 文件修改成上游dns 地址
fallthrough in-addr.arpa ip6.arpa
}
prometheus :9153
proxy . 172.16.20.132 172.16.20.133 # /etc/resolv.conf 文件修改成上游dns 地址
cache 30
loop
reload
loadbalance
}

私有 DNS 和上游域名服务器

点击打赏
文章目录
  1. 1. 安装
    1. 1.1. helm
载入天数...载入时分秒... ,