- Goal: point newsubdomain.mydomain.com to a service running on Cloud Run.
- Check the region first: built-in domain mapping works only in supported regions (e.g. us-central1, us-east1, europe-west1). Other regions need a Load Balancer instead.
- In Cloud Run: open Domain mappings → Add Mapping → pick your service → verify ownership of mydomain.com→ enter the full subdomain.
- Cloud Run gives you a CNAME value: ghs.googlehosted.com (subdomains get one clean CNAME; only the apex domain needs A/AAAA records).
- In GoDaddy DNS: add a CNAME record → Host: newsubdomain (label only) → Value: ghs.googlehosted.com → TTL default → Save.
- Avoid conflicts: remove any existing forwarding or record using the same newsubdomain host.
- Wait & verify: DNS propagates in minutes to a few hours; Google auto-issues the SSL certificate. Check at dnschecker.org, then open https://newsubdomain.mydomain.com.
Docs: https://docs.cloud.google.com/run/docs/mapping-custom-domains
ไม่มีความคิดเห็น:
แสดงความคิดเห็น