为 AppEngine 设置具有静态 IP 的自定义域的最佳方法是什么 [英] What is the best approch to setup custom domain with static IP for AppEngine

查看:21
本文介绍了为 AppEngine 设置具有静态 IP 的自定义域的最佳方法是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在下面做了调查

  1. 通过 AppEngine 设置添加自定义域 - 似乎不是静态 IP,它使用 Google NS.
  2. 设置 VM 并作为代理运行 - 似乎是复杂的方法和安全/维护开销.
  3. HTTPS 负载平衡器,带有 互联网 NEG I仍在调查中,它说

<块引用>

如果您想从托管在 Google Cloud 外部的源提供内容,并且您希望将外部 HTTP(S) 负载平衡器作为前端,则应执行此操作.

对此解决方案的任何建议/想法都将非常有助于为此选择正确的解决方案

解决方案

AppEngine/Cloud Functions 的静态 IP 可以通过带有Serverless Network End Group"的 HTTPS 负载均衡器实现后端.

LB 还有助于为 AppEngine 和其他无服务器组件提供多区域服务.

这类似于互联网NEG 使用 HTTPS LB,无服务器 NEG 可以映射到 Google 内部服务,例如 Cloud run/CF、AppEngine.还可以从同一个 GCP 项目映射多个 AppEngine 服务.

我能够提前使用我的项目中的无服务器 NEG 并在我这边进行测试.当无服务器 NEG 可供公众访问时,我会更新这篇文章.

编辑 (7/7/2020):无服务器 NEG 现已推出 Beta 版,可供所有人访问,请参阅

无服务器网络端点组概览

设置无服务器 NEG

I had done an investigation on below

  1. Adding custom domain through AppEngine settings - Doesn't seem to be static IP, it uses Google NS.
  2. Setting up VM and run as a proxy - Seems to be convoluted method and security/maintenance overhead.
  3. HTTPS load balancer with internet NEG I am still investigating and it said

You should do this when you want to serve content from an origin that is hosted outside of Google Cloud, and you want your external HTTP(S) load balancer to be the frontend.

Any suggesions/thoughts for this solution will be greatly appricated to chose right solution for this

解决方案

Static IP for AppEngine/Cloud Functions can be achieved by HTTPS Load Balancer with "Serverless Network End Group" backend.

LB also helps multi-region serving for AppEngine and other serverless components.

This is similar to Internet NEG with HTTPS LB, serverless NEG can be mapped to Google internal services like Cloud run/CF, AppEngine. It was also possible to map multiple AppEngine services from the same GCP project.

I was able to gain early access to serverless NEG on my project and test on my side. I will update this post when Serverless NEG available for public access.

Edit (7/7/2020): Serverless NEG is available in Beta now and is available for everyone to access, See

Serverless network endpoint groups overview

Setting up serverless NEGs

这篇关于为 AppEngine 设置具有静态 IP 的自定义域的最佳方法是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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