docs: converge trans shell examples
This commit is contained in:
@@ -15,8 +15,8 @@ G14 platform DB 是 G14 host OS 上的原生 PostgreSQL,不是 k3s workload,
|
||||
G14 平台库固定由 systemd 管理:
|
||||
|
||||
```bash
|
||||
trans G14 script -- 'systemctl status postgresql'
|
||||
trans G14 script -- '/usr/local/sbin/g14-platform-db-health'
|
||||
trans G14 sh -- 'systemctl status postgresql'
|
||||
trans G14 sh -- '/usr/local/sbin/g14-platform-db-health'
|
||||
```
|
||||
|
||||
PostgreSQL 只监听 G14 host loopback 与 k3s pod 可达的 node gateway 地址:
|
||||
@@ -76,8 +76,8 @@ HWLAB v0.3 的 source truth 在 `G14:/root/hwlab-v03`、branch `v0.3`。`deploy/
|
||||
标准验证:
|
||||
|
||||
```bash
|
||||
trans G14:/root/hwlab-v03 script -- 'npm run gitops:ts:check'
|
||||
trans G14:/root/hwlab-v03 script -- 'npm run gitops:render -- --lane v03 --out /tmp/hwlab-v03-render-check'
|
||||
trans G14:/root/hwlab-v03 sh -- 'npm run gitops:ts:check'
|
||||
trans G14:/root/hwlab-v03 sh -- 'npm run gitops:render -- --lane v03 --out /tmp/hwlab-v03-render-check'
|
||||
bun scripts/cli.ts hwlab nodes control-plane trigger-current --node G14 --lane v03 --confirm
|
||||
bun scripts/cli.ts hwlab nodes control-plane status --node G14 --lane v03 --pipeline-run <pipeline-run>
|
||||
```
|
||||
@@ -132,8 +132,8 @@ bun scripts/cli.ts hwlab nodes secret cleanup-obsolete --node G14 --lane v03 --n
|
||||
备份脚本固定在 G14 host:
|
||||
|
||||
```bash
|
||||
trans G14 script -- 'systemctl status g14-platform-db-backup.timer'
|
||||
trans G14 script -- '/usr/local/sbin/g14-platform-db-backup'
|
||||
trans G14 sh -- 'systemctl status g14-platform-db-backup.timer'
|
||||
trans G14 sh -- '/usr/local/sbin/g14-platform-db-backup'
|
||||
```
|
||||
|
||||
备份目录:
|
||||
|
||||
Reference in New Issue
Block a user