diff --git a/content/posts/k3s-cluster-install.md b/content/posts/k3s-cluster-install.md index 52b6964..8c8dce1 100644 --- a/content/posts/k3s-cluster-install.md +++ b/content/posts/k3s-cluster-install.md @@ -20,22 +20,31 @@ categories: ## 网络拓扑 -``` - 公网 - │ - x.x.x.x - ┌──────┴──────┐ - │ agent-ali │ ← 唯一暴露公网的节点 - │ (HAProxy) │ 运行 HAProxy 代理 k3s API - └──────┬──────┘ - │ Tailscale (100.100.x.x) - ┌──────────────┼──────────────┐ - ▼ ▼ ▼ - ┌──────────┐ ┌──────────┐ ┌──────────┐ - │ server-jz│ │server-jz2│ │server-zen│ - │ 私有云 │ │ 私有云 │ │ 私有云 │ - │ CP+etcd │ │ CP+etcd │ │ CP+etcd │ - └──────────┘ └──────────┘ └──────────┘ +``` +┌─────────────────────────────────────────────────────┐ +│ 公网 │ +│ 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 │ +│ 私有云 │ │ 私有云 │ │ 私有云 │ +└──────────────┘ └──────────────┘ └──────────────┘ ``` - **只有 `agent-ali` 有公网 IP**,其余节点均通过 Tailscale 内网互通