日常更新

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

@@ -4,7 +4,8 @@
## TL;DR
- **自动化验收**`./scripts/verify.sh run 02-01`
- **手动练习**:以本课清单 `ansible/files/02-01/01-control-ingress.yaml` 复制到目标机,按本文改字段后执行下方 `kubectl`/bash学习路径可不使用 verify
- **自动化验收**`./ansible/bin/verify.sh run 02-01`
- **你需要准备**:入口节点 `:80` 可达;(可选)`nginx_entry_base=http://<入口IP>` 用于脚本侧 HTTP 校验
- **成功判据**`/demo-m1/` 返回 `200` 且能区分后端(见本篇“验证命令/预期”与 playbook 断言)
- **排障**:见本文「排障」
@@ -21,12 +22,12 @@
2. 创建 Middleware + Ingress`/demo-m1` -> nginx-m1:80
3. 等待 Pod 与 Ingress 就绪
示例 YAML 见 `ansible/files/02-05/01-control-ingress.yaml`
示例 YAML 见 `ansible/files/02-01/01-control-ingress.yaml`
## 部署命令
```bash
kubectl apply -f ansible/files/02-05/01-control-ingress.yaml
kubectl apply -f ansible/files/02-01/01-control-ingress.yaml
```
## 验证命令
@@ -44,7 +45,7 @@ curl -i --max-time 3 http://<入口节点IP>/demo-m1/
## 删除
```bash
kubectl delete -f ansible/files/02-05/01-control-ingress.yaml
kubectl delete -f ansible/files/02-01/01-control-ingress.yaml
```
## 排障