【发布时间】:2023-03-12 09:11:02
【问题描述】:
我在 GCP 的 Endpoints 中有两个服务来托管两个 API
他们是
服务A
和
服务 B
服务 A 的主机是 projectid.appspot.com
服务 B 的主机是 test-dot-projectid.appspot.com
当我使用 gcloud app 部署我的应用时,部署服务 A 的测试服务 appengine 我的 app.yaml 看起来像这样
runtime: go
env: flex
service: test
endpoints_api_service:
name: projectid.appspot.com
rollout_strategy: managed
handlers:
- url: .* #mandatory
secure: always #deprecated in flex environment
redirect_http_response_code: 301 #optional
script: _go_app #mandatory
据我了解,该应用已部署到服务 A 的 URL projectid.appspot.com 但带有子域测试所以 test-dot-projectid.appspot.com
但是,从技术上讲,这现在不是在默认服务上部署到服务 B,即 test-dot-projectid.appspot.com
这不会干扰通过服务测试在服务 A 上进行部署吗?有什么区别?
【问题讨论】:
标签: rest google-app-engine google-cloud-platform google-cloud-endpoints