What is the best approch to setup custom domain with static IP for AppEngine

橙三吉。 提交于 2020-07-01 01:32:13

问题


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


回答1:


As you can see at this documentation, "App Engine does not currently provide a way to map static IP addresses to an application. In order to optimize the network path between an end user and an App Engine application, end users on different ISPs or geographic locations might use different IP addresses to access the same App Engine application". So, there is no way to set a static IP address to App Engine but you can use a use a pool of IP address. In the shared link, you can find the way to use ranges of IP address in App Engine. This other link, explain a bit more how to do it.




回答2:


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

Note: At the moment Serverless NEG is in Alpha, which isn't available in GA for public access, expected to be released in few months from Google. it only supports command-line configuration now.

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.

Edit: I will update this post when Serverless NEG available for public access.



来源:https://stackoverflow.com/questions/62554019/what-is-the-best-approch-to-setup-custom-domain-with-static-ip-for-appengine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!