Files
Deploy-Laboratory/docs/07-01-k3s-calico-dualstack.md
2026-03-29 09:08:01 +08:00

30 lines
1.3 KiB
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.
## 07-01-k3s Calico 双栈实验IPv4+IPv6
> 草稿占位:本节用于在后续版本中整理 **k3s + Calico** 的 IPv4/IPv6 双栈网络实验包括安装参数、clusterCIDR/serviceCIDR 设计、Pod IPv6 出网与 NetworkPolicy 示例。
## 契约与真源
- **索引**`ansible/files/07-01/README.md`(实验清单待正文补全后纳入同目录)。
- **自动**`./ansible/bin/verify.sh run 07-01`
## TL;DR
- **自动化验收**`./ansible/bin/verify.sh run 07-01`
- **关键前置**:按本文「前置条件」准备环境变量/Secret/入口 IP
- **成功判据**:达到本文「预期」且 playbook 断言通过
- **排障**:见本文「排障」
- **目标**:在独立的实验环境中,替换默认 flannel为 k3s 配置 Calico 双栈网络,并验证:
- Pod 获得 IPv4+IPv6 地址
- Pod 之间 IPv6 互通
- Pod 通过 IPv6 出网(`curl -6`
- 双栈下的 NetworkPolicy 行为
- **当前状态**:仅预留文档入口;具体步骤将在完成 IPv4-only 实验稳定后补充。
## 排障
- **先看 playbook 输出**:失败时先定位是 deploy/wait/http_check 哪一步。
- **集群侧总览**`kubectl get nodes -o wide``kubectl -n kube-system get pods -o wide`
- **事件与日志**`kubectl -n <ns> describe ...``kubectl -n <ns> logs ... --tail=200`