Cloud Run SSL配置失败(FAILED_NOT_VISIBLE)及404问题咨询
Cloud Run自定义域名映射方案对比及404问题咨询
背景与操作流程
我在GitHub上有一个包含Vue.js应用和Node.js代码的仓库,操作流程如下:
- 创建GitHub Action
- 通过该Action构建Docker镜像并推送到GCP Artifact Registry
- 从Artifact Registry将镜像部署至Cloud Run与GKE
- 在Cloud Run中集成「自定义域名 - Google Cloud Load Balancing」
- 完成集成后填写域名,复制IP地址并添加至GoDaddy的A记录
- 域名集成状态显示「Active」
- 登录Manage.Auth0.com并添加该域名
遇到的问题
- 访问域名时能看到登录页面,但登录后出现404页面未找到错误
- 访问
https://www.cloud.test.co/home与https://www.cloud.test.co/dashboard均显示404错误
排查信息
相关截图
- SSL配置失败截图:

- GoDaddy IP添加截图:

- 自定义域名映射截图:

dig命令排查结果
$ dig 34.xx.xx.249 ; <<>> DiG 9.11.3-1ubuntu1.18-Ubuntu <<>> 34.xx.xx.249 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22961 ;; flags: qr rd ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;34.xx.xx.249. IN A ;; ANSWER SECTION: 34.xx.xx.249. 0 IN A 34.xx.xx.249 ;; Query time: 0 msec ;; SERVER: 172.21.208.1#53(172.21.208.1) ;; WHEN: Fri Jan 19 12:22:46 IST 2024 ;; MSG SIZE rcvd: 58
nslookup命令排查结果
$ nslookup 34.xx.xx.249 249.xx.xx.34.in-addr.arpa name = 249.xx.xx.34.bc.googleusercontent.com. Authoritative answers can be found from:
咨询问题
以下两种Cloud Run自定义域名映射方式哪种更优:
- 自定义域名 - Google Cloud Load Balancing
- Cloud Run Domain Mappings
内容的提问来源于stack exchange,提问作者DevOPs
相关产品推荐
相关产品推荐

