docs: align hwlab v02 gc poller notes
This commit is contained in:
@@ -63,7 +63,7 @@ BuildKit cache repo 的历史 `latest` 写入会留下大量 untagged manifest r
|
||||
|
||||
Registry 执行必须以远端异步 job 完成,并具备以下维护保护:
|
||||
|
||||
- 暂停 G14/v0.2 branch poller CronJob。
|
||||
- 暂停 G14 branch poller CronJob;`v0.2` 不设 branch poller,只需确认不存在 v02 CronJob 残留。
|
||||
- 等待 hwlab-ci PipelineRun、TaskRun 和 Job 空闲。
|
||||
- 通过 registry API 删除 manifest 时 registry 必须仍在线。
|
||||
- registry 下线后只能删除通过 plan 判定的 tag/revision 目录;不得直接删除 blob 目录。
|
||||
@@ -154,7 +154,7 @@ G14 GC 后必须验证:
|
||||
bun scripts/cli.ts ssh G14 script -- 'df -h / | tail -1'
|
||||
bun scripts/cli.ts ssh G14 script -- 'curl -fsS http://127.0.0.1:5000/v2/ >/dev/null && echo ok'
|
||||
bun scripts/cli.ts ssh G14 script -- 'KUBECONFIG=/etc/rancher/k3s/k3s.yaml kubectl -n hwlab-ci get deploy hwlab-registry'
|
||||
bun scripts/cli.ts ssh G14 script -- 'KUBECONFIG=/etc/rancher/k3s/k3s.yaml kubectl -n hwlab-ci get cronjob hwlab-g14-branch-poller hwlab-v02-branch-poller -o custom-columns=NAME:.metadata.name,SUSPEND:.spec.suspend --no-headers'
|
||||
bun scripts/cli.ts ssh G14 script -- 'KUBECONFIG=/etc/rancher/k3s/k3s.yaml kubectl -n hwlab-ci get cronjob hwlab-g14-branch-poller -o custom-columns=NAME:.metadata.name,SUSPEND:.spec.suspend --no-headers && ! KUBECONFIG=/etc/rancher/k3s/k3s.yaml kubectl -n hwlab-ci get cronjob hwlab-v02-branch-poller >/dev/null 2>&1'
|
||||
```
|
||||
|
||||
DEV workload 验证应检查非零副本 workload 是否 ready;`0/0` 的显式停用 deployment 不应误报为事故。registry tag 数只作为辅证,不能替代 workload ref 保护和 registry API 健康。
|
||||
|
||||
Reference in New Issue
Block a user