简体   繁体   English

从GCP连接到VPN背后的AWS实例

[英]Connecting from GCP to AWS instances behind VPN

I am trying to find a simple solution to the following problem. 我正在尝试找到以下问题的简单解决方案。 I have 2 microservices in AWS behind VPN on machines with a static IP (which won't change) behind VPN (so it's visible by another AWS instances in the same security group) and then I have another microservice on GCP (Kubernetes), which needs to access these (basically for aa very simple and very occasional HTTP POST requests). 我在AWS后面的机器上的AWS中有2个微服务,而在VPN后面的机器上有静态IP(不会改变)(因此同一安全组中的另一个AWS实例可以看到它),然后我在GCP(Kubernetes)上有了另一个微服务,需要访问这些(基本上是针对一个非常简单且非常偶然的HTTP POST请求)。 What would be the easiest way to do so? 这样做最简单的方法是什么? I was thinking about specifying IP addresses of my Kubernetes pool instances to inbound rules in the AWS security group for those two microservices, but that is dangerous because of the dynamic nature of these... 我当时正在考虑将我的Kubernetes池实例的IP地址指定给这两个微服务的AWS安全组中的入站规则,但这很危险,因为它们的动态性质...

I found some solutions using tunnels and cetera, but most of the guides were either outdated or doesn't suite to my needs. 我发现了一些使用隧道和其他方法的解决方案,但是大多数指南要么过时,要么不适合我的需求。 They eg require to create a new VPC, while I want to reuse the existing one. 例如,他们需要创建一个新的VPC,而我想重用现有的VPC。 I am sure it's the way, but seems as a huge overkill to me. 我确定是这样,但是对我来说似乎是一个巨大的矫kill过正。 Couldn't I eg somehow leverage Ingress or some simple proxy container? 我不能以某种方式利用Ingress或一些简单的代理容器吗?

Thanks! 谢谢!

我用两个代理解决了。

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

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