简体   繁体   English

从Kubernetes中的多个外部Ips公开服务

[英]Expose a service from mutiple external Ips in kubernetes

I need to expose dashboard service from multiple external ips. 我需要从多个外部ip公开仪表板服务。 In order to expose a service, I used metallb bare metal loadbalancer. 为了提供服务,我使用了metallb裸机负载平衡器。

I just manage to expose dashboard service from single external IP. 我只是设法从单个外部IP公开仪表板服务。 I wonder if it is possible to expose same service from multiple external IPS? 我想知道是否可以从多个外部IPS公开相同的服务?

i think you do it using ingress and expose that service as the LoadBalancer so it will be accessible form both load balancer or from both end point. 我认为您使用入口进行了处理,并将该服务作为LoadBalancer公开,因此可以从负载均衡器或从两个端点进行访问。

Ingress will create one Load Balancer and your service also create one load balancer so it will be accessible from both ip Ingress会创建一个负载均衡器,而您的服务也会创建一个负载均衡器,因此两个IP都可以访问它

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM