diff --git a/content/posts/k3s-cluster-install.md b/content/posts/k3s-cluster-install.md index 8c8dce1..ceb18d5 100644 --- a/content/posts/k3s-cluster-install.md +++ b/content/posts/k3s-cluster-install.md @@ -20,31 +20,29 @@ categories: ## 网络拓扑 -``` -┌─────────────────────────────────────────────────────┐ -│ 公网 │ -│ x.x.x.x:6443 │ -└──────────────────────┬──────────────────────────────┘ - │ - ▼ -┌─────────────────────────────────────────────────────┐ -│ agent-ali │ -│ ┌─────────────────────────────────────────────────┐ │ -│ │ HAProxy │ │ -│ │ bind *:6443 → roundrobin │ │ -│ │ frontend ───┐ ┌── backend ───────────────── │ │ -│ └────────────────┼──┼─────────────────────────────┘ │ -└───────────────────┼──┼──────────────────────────────┘ - │ │ - Tailscale│ │ 100.100.x.x - ┌─────────┼──┼─────────┐ - │ │ │ │ - ▼ ▼ ▼ ▼ -┌──────────────┐ ┌──────────────┐ ┌──────────────┐ -│ server-jz │ │ server-jz2 │ │ server-zen │ -│ CP + etcd │ │ CP + etcd │ │ CP + etcd │ -│ 私有云 │ │ 私有云 │ │ 私有云 │ -└──────────────┘ └──────────────┘ └──────────────┘ +``` + Internet + x.x.x.x:6443 + | + v + +-----------------------------+ + | agent-ali | + | +-----------------------+ | + | | HAProxy | | + | | bind *:6443 | | + | | -> roundrobin | | + | +----------+-------------+ | + +-------------+----------------+ + | + Tailscale | 100.100.x.x + +---------------+----------------+ + | | | + v v v + +----------------+ +----------------+ +----------------+ + | server-jz | | server-jz2 | | server-zen | + | CP + etcd | | CP + etcd | | CP + etcd | + | 私有云 | | 私有云 | | 私有云 | + +----------------+ +----------------+ +----------------+ ``` - **只有 `agent-ali` 有公网 IP**,其余节点均通过 Tailscale 内网互通