gpt4 book ai didi

nginx - 具有私有(private) IP 的 Kubernetes 入口 Controller

转载 作者:行者123 更新时间:2023-12-02 11:29:18 25 4
gpt4 key购买 nike

是否可以在没有公共(public) IP 地址的情况下部署入口 Controller (nginx)?

谢谢!

最佳答案

is it possible to deploy an ingress controller (nginx) without a public ip address?



毫无疑问,是的,如果 Ingress Controller 的 Service属于 type: NodePort那么 Ingress Controller 的私有(private) IP 地址是 Node的 IP 地址,在指向 :80 的端口上和 :443Service . secret 地,这正是 type: LoadBalancer 所发生的事情。 , 只是在负载均衡器的 IP 地址和绑定(bind)到 Node 之间的云提供商映射的额外糖衣'运动的。

所以,要关闭这个循环:如果你希望有一个 100% 的内部 Ingress Controller ,那么使用 hostNetwork: true并绑定(bind) Ingress Controller 的 ports:成为 主持人 的端口 80 和 443;然后,为每个解析到每个 Node 的地址的虚拟主机创建一个 DNS(A 记录|CNAME 记录)。在集群中,并且噗:100% 非面向 Internet 的 Ingress Controller 。

关于nginx - 具有私有(private) IP 的 Kubernetes 入口 Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51193816/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com