简体   繁体   中英

Google Cloud Run Not Supporting Domain and Subdomain at same time

I have a domain dummydomain.com . I want my website to run on both dummydomain.com and www.dummydomain.com . Google cloud run supports only one of them.

If I add dummydomain.com then it give me IPs to add as DNS A and AAAA record. Then if I add www as cname pointing to @ then that does not work.

If I add www.dummydomain.com then google gives me CNAME record to add in DNS and then there is no setting for A record and certificate issued to www.dummydomain.com

There should be provision to add Both A Record and CNAME and certificate should be issued to *.dummydomain.com

There are two solutions:

  • Add two custom domain names to the Cloud Run service.
  • Deploy two Cloud Run services using the same container and add a custom domain name to each one.

The first method is preferable to minimize cold starts as all traffic goes to the same service.

Cloud Run Mapping custom domains

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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