0
点赞
收藏
分享

微信扫一扫

Kubernetes之coredns写法

驚鴻飛雪 2022-05-19 阅读 65

新增域名

[root@rancher-k3s02 ~]# kubectl -n kube-system describe cm coredns
.....
====
Corefile:
----
.:53 {
errors
health
ready
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
upstream
fallthrough in-addr.arpa ip6.arpa
}
hosts /etc/coredns/NodeHosts {
reload 1s
fallthrough
}
prometheus :9153
forward . /etc/resolv.conf
cache 30
loop
reload
loadbalance
}

NodeHosts:
----
172.16.3.217 rancher-k3s01
172.16.3.218 rancher-k3s02
ip FQDN
....


举报

相关推荐

0 条评论