Files
Deploy-Laboratory/ansible/files/06-01/README.md
2026-03-29 09:08:01 +08:00

11 lines
768 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 06-01NetworkPolicy 与连通性排障)
| 文件 | 说明 |
|------|------|
| `networkpolicy-traefik-egress.example.yaml` | Traefik 出站示例后端命名空间、Service CIDR、DNS |
| `networkpolicy-backend-ingress.example.yaml` | 后端仅允许来自 `kube-system`Traefik的入站示例 |
- **手动**:复制为正式名后 `kubectl apply -f ...`,并按集群实际 **namespace / 标签 / CIDR** 修改(见 [docs/06-01-k3s-networkpolicy-故障排查.md](../../../docs/06-01-k3s-networkpolicy-故障排查.md))。
- **自动**`./ansible/bin/verify.sh run 06-01`noop + 基线;策略真源以本目录为准,与手工 `kubectl` 一致)。
- 示例文件名含 `example.`,默认验证流程跳过对其的 `kubectl dry-run`