[英]Kubernetes static ip ingress on a private cloud
We are trying to build a Kubernetes node on our Private VMware infrastructure. 我们正在尝试在私有VMware基础架构上构建一个Kubernetes节点。 I have the cluster up and running and and ingress running, however I can't figure out how to route traffic to the ingress.
我已经启动并运行了集群,并且正在运行入口,但是我不知道如何将流量路由到入口。
We are using Rancher 2.0.7. 我们正在使用Rancher 2.0.7。
I would like to have the following setup if possible: 如果可能,我想进行以下设置:
I can figure out the DNS and firewall routing, however I can't figure out how to set a static External IP address on the Ingress Load Balancer. 我可以确定DNS和防火墙的路由,但是无法确定如何在Ingress负载平衡器上设置静态外部IP地址。
I can see you can specify a Host name in the Load balancer, however how does this become publicly available? 我可以看到您可以在负载均衡器中指定主机名,但是该主机名如何公开可用? Could it be because we don;t have an external Load Balancer?
可能是因为我们没有外部负载均衡器吗?
What am I missing on setup of the Ingress/Load balancer? 在设置入口/负载平衡器时我缺少什么?
Thank you in advance, I have spent about two weeks trying to get this to work. 在此先感谢您,我花了大约两个星期的时间来尝试使它生效。
You need to be able to set the Ingress Service to type=LoadBalancer
. 您需要将Ingress Service设置为
type=LoadBalancer
。 With on-prem infrastructure, this either requires you to have an external loadbalancer like an F5 . 对于内部部署基础架构,这要么需要您使用外部负载平衡器(例如F5) 。
One option to have this working is to use MetalLb 一种可行的选择是使用MetalLb
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.