我们在 ibm cloud cloud Foundry 上运行了两个应用程序(appA 和 appB)。appA 通过容器到容器的网络访问 appB,而 appB 也可以通过 Gorouter 路由在外部使用。问题是,虽然它是 http-8080 我们的应用程序公开 - 一切都很好。
现在我们必须通过 https 进行容器到容器的联网。我们将应用程序配置为公开 https-8080。8080 被用作https://docs.cloudfoundry.org/devguide/custom-ports.html声明:
By default, apps only receive requests on port 8080 for both HTTP and TCP routing,
and so must be configured, or hardcoded, to listen on this port
容器到容器网络现在使用 https 按预期工作。但是我们不再能够通过外部 Gorouter 路由使用 appB。
按照我们的预期,让它全部启动并运行的最佳方式是什么?