简体   繁体   English

谷歌云引擎与 Bucket 套接字和实例的连接

[英]Google cloud engine connection with Bucket socket and instance

I have a bucket in Google Cloud which I have upload Angular template ie我在 Google Cloud 中有一个存储桶,我上传了 Angular 模板,即
http://digitaldevnet.appspot.com http://digitaldevnet.appspot.com
then I have VM instance IP where I have WordPress website ie然后我有我有 WordPress 网站的虚拟机实例 IP,即
http://35.200.194.201 http://35.200.194.201

I found different tutorials where you can connect domain to Google Cloud hosting but I want to connect appspot link ie http://digitaldevnet.appspot.com to WordPress site can be connected and once we browse it should work as VM may be offline sometime.我找到了不同的教程,您可以在其中将域连接到 Google Cloud 托管,但我想连接 appspot 链接,即http://digitaldevnet.appspot.com到 WordPress 站点可以连接,一旦我们浏览它应该可以工作,因为 VM 有时可能会离线。

Any recommendation and tutorial, please let me know任何推荐和教程,请告诉我

You would need to set up a Load balancer in order to direct your traffic between the GCE instance and the bucket, you can find the instructions for this over here .您需要设置负载均衡器以在 GCE 实例和存储桶之间引导您的流量,您可以在此处找到相关说明。

Nevertheless, it would be a bit complicated as you would need to set up the configuration and some health checks so that the GCE instance is not accessible when it's down.然而,这会有点复杂,因为您需要设置配置和一些健康检查,以便 GCE 实例在关闭时无法访问。

Hope you find this useful.希望您觉得这个有帮助。

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

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