简体   繁体   English

如何从本地机器连接到谷歌云 VPC

[英]How to connect to Google cloud VPC from on-premise machine

I have a VPC called 'su.net-1' where I have 3 VM Instances and 1 SQL Instance (Postgresql to be precise).我有一个名为“su.net-1”的 VPC,其中有 3 个 VM 实例和 1 个 SQL 实例(准确地说是 Postgresql)。 All of them with no Public IP, just Private IP. They are in a kube.netes cluster.所有这些都没有公共 IP,只有私有 IP。它们位于 kube.netes 集群中。

The requirement I have is to be able to connect to the VPC from my on-premise PC in order to use some SQLClient to connect to the PG and see the data, I have read about CloudVPN but don't know how to configure it to have what I want... does anyone of you ever done some configuration like that?我的要求是能够从我的本地 PC 连接到 VPC,以便使用一些 SQLClient 连接到 PG 并查看数据,我已经阅读了有关 CloudVPN 的信息,但不知道如何将其配置为有我想要的...你们中有人做过这样的配置吗?

You can use Cloud VPN but that is a site-to-site VPN that requires supported routers and solid knowledge of routing,.networking and VPNs.您可以使用 Cloud VPN,但这是一个站点到站点的 VPN,需要受支持的路由器和扎实的路由、网络和 VPN 知识。

Using third-party VPNs with Cloud VPN 将第三方 VPN 与 Cloud VPN 结合使用

For small businesses or home based developers that only need to connect a few users to a VPC, use an open source product like OpenVPN.对于只需要将少数用户连接到 VPC 的小型企业或家庭开发人员,请使用 OpenVPN 等开源产品。 Google Marketplace offers a deployable configuration for your project with a click configuration. Google Marketplace 通过点击配置为您的项目提供可部署的配置。 Simple and easy to deploy.简单且易于部署。

Google Cloud Marketplace OpenVPN 谷歌云市场 OpenVPN

In order to connect to Kube.netes Cluster from your on-premises.networks you can use Cloud VPN.为了从您的 on-premises.networks 连接到 Kube.netes 集群,您可以使用 Cloud VPN。 The configuration of Cloud VPN with the Cluster and On-Premise.network is documented here . 此处记录了具有集群和 On-Premise.network 的 Cloud VPN 配置。

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

相关问题 想要在没有互联网的情况下将文件从私有本地实例 (VM) 传输到谷歌云存储 - Want to transfer file from private on-premise Instance (VM) to google cloud storage without internet 我可以从云网站故障转移到 AWS 中的内部部署吗? - Can I fail over from on cloud website to on-premise in AWS? 使用 VPC 和 peer.networking 时如何从 Google Cloud Run 连接到 MongoDB Atlas? - How do you connect to MongoDB Atlas from Google Cloud Run when using VPC and peer networking? 将本地机器上的数据导入谷歌云存储 - Import the data from the local machine to the Google cloud Storage 无法从 VPC 中的 Lambda 连接到 AWS Keyspaces - Unable to connect to AWS Keyspaces from a Lambda in a VPC 无法使用带出口设置的 VPC 静态 IP 地址从 App Engine Standard 连接到 Cloud SQL:所有流量 - Cannot Connect to Cloud SQL from App Engine Standard using a VPC Static Ip Address with Egress Setting: all-traffic 如何为 firebase 云功能设置 vpc 连接器? - How to setup vpc connector for firebase cloud functions? 从同一 VPC 中的 Lambda 连接到 Elasticsearch 服务 - Connect to Elasticsearch Service from Lambda in the same VPC 如何从 Cloud Run 安全地连接到 Cloud SQL? - How to securely connect to Cloud SQL from Cloud Run? 如何从我的电脑连接到谷歌云平台中私有 ip 的 sql 实例 - How to connect from my pc to sql instance with private ip in google cloud platform
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM