7.3. 了解多租户子域
由于同一 OpenShift 集群域中存在多个帐户,各个帐户名称会将 OpenShift 集群域名作为子域预先填充。例如,集群中名为 user
且域为 example.com
的帐户的路由如下:
user.example.com
标准多租户部署包括:
- 主管理员用户
由
MASTER_NAME
参数定义的 master 管理门户路由:<MASTER_NAME>.<WILDCARD_DOMAIN>
- 帐户管理员用户
由
TENANT_NAME
参数定义的帐户管理门户路由:<TENANT_NAME>-admin.<WILDCARD_DOMAIN>
帐户的开发人员门户路由:
<TENANT_NAME>.<WILDCARD_DOMAIN>
生产环境和临时内置 APIcast 网关的路由:
<API_NAME>-<TENANT_NAME>-apicast-staging.<WILDCARD_DOMAIN> <API_NAME>-<TENANT_NAME>-apicast-production.<WILDCARD_DOMAIN>
This example illustrates the output users and routes of a standard multitenant deployment of 3scale:
---- --> Deploying template "3scale-project/3scale-api-management" for "amp.yml" to project project
3scale API Management --------- 3scale API Management main system
Login on https://user-admin.3scale-project.example.com as admin/xXxXyz123 ... * With parameters: * ADMIN_PASSWORD=xXxXyz123 # generated * ADMIN_USERNAME=admin * TENANT_NAME=user ... * MASTER_NAME=master * MASTER_USER=master * MASTER_PASSWORD=xXxXyz123 # generated ... --> Success Access your application via route 'user-admin.3scale-project.example.com' Access your application via route 'master-admin.3scale-project.example.com' Access your application via route 'backend-user.3scale-project.example.com' Access your application via route 'user.3scale-project.example.com' Access your application via route 'api-user-apicast-staging.3scale-project.example.com' Access your application via route 'api-user-apicast-production.3scale-project.example.com' Access your application via route 'apicast-wildcard.3scale-project.example.com' ... ----
master admin 添加的其他帐户将根据其名称分配一个子域。