--dns 标志相当于 kubernetes yaml 文件吗?
我希望在 Kubernetes 集群中创建的 Pod 能够使用我预先存在的自定义 DNS 服务器。
DNS 位于单独的机器上,当运行 docker 容器时,我可以使用 --dns
标志进行设置。
是否可以在 Kubernetes Pod 中复制这一点?
我也愿意接受有关如何做到这一点的其他建议。
I want the pods that are created in my Kubernetes cluster to be able to use my preexisting custom DNS server.
The DNS is on a separate machine and, when running docker containers, I could set this using the --dns
flag.
Is it possible to replicate that in Kubernetes pods?
I am also open to other suggestions on how to do this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更准确地说,如此要点中所示,您可以:
官方文档:“CoreDNS 配置相当于 kube-dn"
另外:
More precisely, as in this gist, you can:
Official documentation: "CoreDNS configuration equivalent to kube-dn"
Also: