Initialize the Gateway
Scenario
After the first deployment, initialize ZStack API Router and verify that the database migration, service readiness, and console entry are available.
Prerequisites
zr-serveris running.- PostgreSQL migration has been applied.
- The administrator has a control-plane credential.
- If the console is enabled,
ZR_CONSOLE_DIST_DIRpoints to the console static directory.
Procedure
- Open the console URL, for example
http://{ROUTER_HOST}:3080/ai-gateway. - Log in with the administrator account or the platform-provided login method.
- Open System Status and verify that the service status is normal.
- Open Model Management, Channel Management, and Token Management to confirm that resource lists load correctly.
- Run health checks on the server:
curl -fsS http://{ROUTER_HOST}:3080/healthz
curl -fsS http://{ROUTER_HOST}:3080/readyz
Verification
| Check | Expected Result |
|---|---|
/healthz | Returns success. |
/readyz | Returns ready. |
| Console | You can log in and view resource lists. |
| OpenAPI | /api/zr/openapi.json is accessible. |
Notes
- Do not use a test Cloud token in production.
- If the console is unavailable but
/readyzis normal, check the ingress proxy and static resource directory. - If
/readyzis abnormal, checkZR_DATABASE_URLand database connectivity first.
