日常更新

This commit is contained in:
2026-03-29 09:08:01 +08:00
parent 31709425e2
commit befdefd222
224 changed files with 7240 additions and 3297 deletions

View File

@@ -5,7 +5,7 @@
## TL;DR
- **自动化验收**`./scripts/verify.sh run 03-01`
- **自动化验收**`./ansible/bin/verify.sh run 03-01`
- **关键前置**:按本文「前置条件」准备环境变量/Secret/入口 IP
- **成功判据**:达到本文「预期」且 playbook 断言通过
- **排障**:见本文「排障」
@@ -28,7 +28,7 @@
- **默认路径**`/var/lib/rancher/k3s/server/manifests/traefik-dashboard.yaml`
- **自定义 data-dir**(如 `--data-dir=/storage``<data-dir>/server/manifests/traefik-dashboard.yaml`
**唯一真源(勿与文档内联重复)**[HelmChartConfig + IngressRoute 完整 YAML](../../ansible/files/03-01/traefik-dashboard.yaml)。复制到上述 manifests 路径,或在仓库根执行:
**唯一真源(勿与文档内联重复)**[HelmChartConfig + IngressRoute 完整 YAML](../ansible/files/03-01/traefik-dashboard.yaml)。复制到上述 manifests 路径,或在仓库根执行:
```bash
kubectl apply -f ansible/files/03-01/traefik-dashboard.yaml
@@ -51,7 +51,7 @@ kubectl -n kube-system rollout status deploy/traefik
3. 验证:一键对全部节点 IP 做 curl 测试(按实际环境修改 IP 列表):
```bash
# 已按 01-02 / 01-06 配置 K3s 默认 LBTraefik 入口标签 + firewalld 基线61~64 任一台 :80 均应返回 200/307
# 已按 01-02 / 01-05 配置 K3s 默认 LBTraefik 入口标签 + firewalld 基线61~64 任一台 :80 均应返回 200/307
for ip in 192.168.2.61 192.168.2.62 192.168.2.63 192.168.2.64; do
code=$(curl -s -o /dev/null -w "%{http_code}" --max-time 3 "http://${ip}/dashboard/" 2>/dev/null || echo "---")
echo "${ip}: ${code}"