简体   繁体   English

私有云上的Kubernetes静态IP入口

[英]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: 如果可能,我想进行以下设置:

  1. DNSMadeEasy.com to handle DNS A Records (DNS to External IP) DNSMadeEasy.com处理DNS A记录(DNS到外部IP)
  2. Firewall we host (External IP to Static Private IP) 我们托管的防火墙(从外部IP到静态专用IP)
  3. Kubernetes Ingress (Private IP to Cluster Load balanced Ingress) Kubernetes入口(专用IP到群集负载均衡的入口)
  4. Load Balanced Ingress (Ingress to Service with multiple instances) 负载均衡的入口(具有多个实例的服务入口)

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.

相关问题 具有私有 IP 的 Kubernetes 入口控制器 - Kubernetes Ingress Controller with private IP Kubernetes 从 Ingress 获取 IP(Oracle 云) - Kubernetes getting IP from Ingress (Oracle Cloud) 在Kubernetes中对入口/出口使用静态IP - Using a static IP for both ingress/egress in Kubernetes GCP静态IP未将其自身附加到Kubernetes入口 - GCP Static IP is not attaching itself to Kubernetes ingress 使用 static ZA12A3079E14CED421AZ9BA52B8A9 部署 Azure kubernetes 入口时出错 - Error deploy Azure kubernetes ingress with static IP Google Cloud Kubernetes 入口 Static IP 地址未反映且与设置不同 - Google Cloud Kubernetes Ingress Static IP address not reflected and different from setup kubernetes将nginx暴露于gcp中的静态ip并带有入口服务配置错误 - kubernetes expose nginx to static ip in gcp with ingress service configuration error Traefik 为 Kubernetes Azure 上的入口 - 将 static ZA12A3079E14CEDB2EAZBA 服务分配给 Traef4CEDB2EAZBA90 服务 - Traefik as Kubernetes Ingress on Azure - Assign static IP to Traefik service Kubernetes:使用服务和静态IP入口公开多个容器 - Kubernetes: expose multiple containers using service and ingress with static ip 如何使用 Terraform 为 Kubernetes 入口分配静态 IP 地址? - How to assign a static ip address to an Kubernetes ingress using Terraform?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM