-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
修改 nodelocaldns 上游 dns 配置 #1210
Conversation
why,我没找到哪里有文档讨论这个配置修改的意义 |
PILLAR__UPSTREAM__SERVERS 这个值在iptables 时,监听的是 kube-dns 服务的 IP 地址, ipvs 时默认是 /etc/resolv.conf。 一般都没有搭建自定义dns, 改成 coreDNS 可以让 coreDNS 作为 nodelocaldns 的上游服务器,在 cornDNS 做 hosts解析可以生效。 |
参考 kubespray 就是nodelocaldns 不支持 rewrite 与 hosts ,coredns 添加 hosts 解析是不生效的。有 dns 服务器话这里可以改成 dns 服务器的地址,没有的话这里改成 coredns 的地址也可以 解析 corndns cm 中添加的hosts |
ipvs 模式下,修改 nodelocaldns 上游 dns 为 kube-dns 的地址