简体   繁体   English

Kubernetes 负载均衡器外部 IP 仅对特定集群公开

[英]Kubernetes Loadbalancer External IP expose to only specific cluster

I have setup the Loadbalancer service in kubernetes cluster.我已经在 kubernetes 集群中设置了负载均衡器服务。 It's providing external IP address.它提供外部 IP 地址。 I need to access that IP only from another cluster and restrict external IP access from anywhere.我需要仅从另一个集群访问该 IP 并从任何地方限制外部 IP 访问。 So that it can accessed only from two places, own cluster and another cluster.这样它只能从两个地方访问,自己的集群和另一个集群。

I have used loadBalancerSourceRanges to filter the range and specified the IPs of another cluster instances.我使用 loadBalancerSourceRanges 过滤范围并指定了另一个集群实例的 IP。 It worked.有效。

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

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