Kubernetes DNS通过主机别名解决
对于Kubernetes,它可以在主机文件(62.116.156.20 Servera)中进行设置DNS别名设置一个选项吗? servera是外部服务器。结果,群集中的任何POD都可以通过DNS与服务器联系。
谢谢
it there for Kubernetes an option to set a DNS alias as in can be done within a host file (62.116.156.20 servera)? Where servera is an external server. As a result any pod within the cluster can get in contact to server via DNS.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这完全取决于您如何配置和部署豆荚。有一个选项可以在此处记录的每个POD的主机文件中添加自定义DNS条目: https://kubernetes.io/docs/tasks/network/network/customize-hosts-file-for-for-pods/
配置sinip:
It totally depends how you configure and deploy your pods. There is an option to add a custom DNS entry to the host file of every pod documented here: https://kubernetes.io/docs/tasks/network/customize-hosts-file-for-pods/
configuration snip: