chore: 清理调试脚本并收敛到 Ansible 流程

移除已废弃的调试/验证脚本与空目录,统一文档与脚本说明到 ansible-playbook 的部署方式,避免失效引用和误用路径。

Made-with: Cursor
This commit is contained in:
2026-03-23 19:18:55 +08:00
parent 8a54cac61f
commit be97836e0d
92 changed files with 3463 additions and 4855 deletions

View File

@@ -7,7 +7,7 @@
- 已完成 `01-02-k3s-工作节点.md`
- 已有至少一个后端服务(如 nginx/nodejs
- 可执行 `kubectl` 与排障脚本
- 可执行 `kubectl`
## 三条先验结论
@@ -30,16 +30,20 @@ curl -I --max-time 3 http://192.168.2.61:80
curl -I --max-time 3 http://192.168.2.62:80
```
### 2.3 快速检查脚本
### 2.3 快速检查命令
```bash
./scripts/diag/netpol/check-net.sh
kubectl get pod,svc,ing -A
kubectl get networkpolicy -A
kubectl -n kube-system get pods -l app=svclb-traefik -o wide
```
### 2.4 全链路诊断
### 2.4 全链路检查(手工)
```bash
./scripts/diag/entrypath/entrypath.sh run ...
# 从入口节点IP验证 HTTP 入口
curl -I --max-time 3 http://192.168.2.61:80
curl -I --max-time 3 http://192.168.2.62:80
```
## 关键策略建议
@@ -52,15 +56,7 @@ curl -I --max-time 3 http://192.168.2.62:80
## 已验证修复Fedora/FCOS
### 4.1 脚本修复(推荐)
```bash
./scripts/diag/firewalld/setup-k3s-firewalld-interfaces.sh
```
该脚本会把 `flannel.1``cni0` 纳入 `trusted` 并持久化。
### 4.2 手动修复(不使用脚本)
### 4.1 手动修复
```bash
# 1) 临时生效(当前运行时)