docs: clarify HWLAB v03 public entry validation
This commit is contained in:
@@ -60,11 +60,11 @@ HWPOD v0.3 不再有当前 platform DB 目标;`hwpod-v03-db`、`hwpod_v03` 和
|
||||
|
||||
这些 SecretRef 的源凭据来自 G14 host 的 platform DB credentials file,不再从旧 lane-local Postgres Secret 派生。`hwpod-v03-db/database-url` 是废弃残留,应该缺席;发现它时用受控清理入口删除,不能为它补 status 可见性或轮换路径。迁移完成后,旧的 repo-owned PostgreSQL bootstrap/ensure 路径已经删除,不能用于轮换 `hwlab-cloud-api-v03-db` 或 `hwlab-v03-openfga`。如需重复轮换,必须先补齐平台 DB 专用 UniDesk CLI,让它从 host 凭据文件读取、写入 k3s Secret,并输出 redacted 状态;不得把手写 `kubectl create secret` 或旧 StatefulSet ensure 路径沉淀成长期流程。
|
||||
|
||||
当前运行面验证使用 control-plane status 和 live health:
|
||||
当前运行面验证使用 control-plane status 和选中 node/lane 的 YAML public URL。D601 `v0.3` 的正式用户入口是 `https://hwlab.pikapython.com`;裸 IP/FRP 端口只能作为 Caddy/FRP 边缘诊断,不作为当前用户入口验收口径:
|
||||
|
||||
```bash
|
||||
bun scripts/cli.ts hwlab nodes control-plane status --node G14 --lane v03
|
||||
curl -fsS http://74.48.78.17:20667/health/live | jq '{status, ready, db: {ready: .db.ready, connectionResult: .db.connectionResult}, runtime: {ready: .runtime.ready, queryResult: .runtime.connection.queryResult}}'
|
||||
bun scripts/cli.ts hwlab nodes control-plane status --node D601 --lane v03
|
||||
curl -fsS https://hwlab.pikapython.com/health/live | jq '{status, ready, db: {ready: .db.ready, connectionResult: .db.connectionResult}, runtime: {ready: .runtime.ready, queryResult: .runtime.connection.queryResult}}'
|
||||
```
|
||||
|
||||
任何 CLI 输出都不得泄露 database URL 或 password,只披露 Secret/key 是否存在、字节数、DB 对象是否存在和 rollout/health 结果。
|
||||
@@ -109,11 +109,11 @@ bun scripts/cli.ts hwlab nodes secret cleanup-owned-postgres --node G14 --lane v
|
||||
|
||||
它不得删除平台 database、平台 role、当前 `hwlab-cloud-api-v03-db`、当前 `hwlab-v03-openfga`、OpenFGA/Cloud API Deployment 或当前 platform DB bridge。PVC 删除前必须已经有平台库备份或迁移 dump 可用;迁移 dump 归档在 `/var/backups/g14-platform-db/migration-*`。
|
||||
|
||||
清理后用以下只读检查确认旧自有 DB 不再存在:
|
||||
清理后用以下只读检查确认旧自有 DB 不再存在;公开 health 仍走选中 node/lane 的 YAML public URL,D601 `v0.3` 使用正式域名:
|
||||
|
||||
```bash
|
||||
trans G14:k3s kubectl -n hwlab-v03 get statefulset,svc,endpoints,endpointslice,configmap,secret,pvc
|
||||
curl -fsS http://74.48.78.17:20667/health/live | jq '{status, ready, environment, db: {ready: .db.ready, connectionResult: .db.connectionResult}, runtime: {ready: .runtime.ready, queryResult: .runtime.connection.queryResult}}'
|
||||
curl -fsS https://hwlab.pikapython.com/health/live | jq '{status, ready, environment, db: {ready: .db.ready, connectionResult: .db.connectionResult}, runtime: {ready: .runtime.ready, queryResult: .runtime.connection.queryResult}}'
|
||||
```
|
||||
|
||||
其中 `endpoints/g14-platform-postgres` 应为空,`endpointslice/g14-platform-postgres-host` 应存在且是唯一带 `kubernetes.io/service-name=g14-platform-postgres` label 的 EndpointSlice。
|
||||
|
||||
Reference in New Issue
Block a user