将Google Cloud Run连接到MongoDB Atlas [英] Connect Google Cloud Run to MongoDB Atlas

查看:58
本文介绍了将Google Cloud Run连接到MongoDB Atlas的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在评估从Google Kubernetes Engine到Google Cloud Run的迁移,以提高公司内部的成本和资源效率.我还正在使用MongoDB将工作流程从整体式PHP和Ruby应用程序过渡到更灵活的Node.js设置.

I'm evaluating a move from Google Kubernetes Engine to Google Cloud Run, to improve cost and resource efficiency within our company. I'm also in the process of transitioning our workflows from monolithic PHP and Ruby apps to a more nimble Node.js setup, using MongoDB.

对于像我们这样的小型组织,我喜欢托管服务(例如Google Cloud Run和MongoDB Atlas)的想法,但是,我担心安全性.在MongoDB Atlas中,似乎唯一真正的安全措施是将IP列入白名单,我显然无法通过Google Cloud Run对其进行访问.

For a small organization like ours, I like the idea of managed services such as Google Cloud Run and MongoDB Atlas, however, I'm concerned about the security. In MongoDB Atlas, it seems the only real security measure is to whitelist IP, which I obviously don't have access to through Google Cloud Run.

我绝对不是网络专家,所以我想知道是否有人对将Cloud Run安全连接到MongoDB Atlas并保持可伸缩性有任何想法.如果我必须继续使用GKE,就这样吧,我只想知道我的所有选择,然后再继续前进.

I'm definitely not a network expert, so I'm wondering if anyone has any ideas for securely connecting Cloud Run to MongoDB Atlas, while still maintaining scalability. If I have to remain on GKE, so be it, I just want to know all of my options before I move forward.

IP白名单-就其本质而言,Google Cloud Run似乎是防静电IP,因此这似乎是一个不起眼的事情.

IP whitelist - by its very nature, Google Cloud Run would seem to be anti-static-IP, so this seems to be a non-starter.

我评估了Cloud NAT和Cloud VPC Peering等项目,但据我所知Cloud Run无法访问VPC,因此似乎也无济于事.

I evaluated items such as Cloud NAT and Cloud VPC Peering, but from what I can tell Cloud Run does not have access to the VPC, so it seems like this wouldn't help either.

推荐答案

Cloud Run和Cloud Function具有相同的基础架构.云功能可以连接到VPC.因此,Cloud Run将支持一天的这项功能,我希望到2019年底.

Cloud Run and Cloud Function have the same underlying infrastructure. Cloud Function have the capability to be connected to a VPC. Thereby, Cloud Run will support a day this capability, I hope by the end of 2019.

如果可以的话,我只建议您等待!

If you can, I just recommend you to wait!

这篇关于将Google Cloud Run连接到MongoDB Atlas的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆