日常更新

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

@@ -0,0 +1,8 @@
# 01-02工作节点加入 + Traefik 基线)
| 文件 | 说明 |
|------|------|
| `k3s-agent-join.example.sh` | worker 使用环境变量或 `agent --data-dir` 加入集群的片段 |
- **手动**:按 [docs/01-02-k3s-工作节点.md](../../../docs/01-02-k3s-工作节点.md) 在 worker 执行;替换 `K3S_URL``TOKEN` 与 IP。
- **自动**`./ansible/bin/verify.sh run 01-02`(与手工步骤共用本目录作为命令真源备忘)。

View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# 工作节点加入 k3s示例— ansible/files/01-02/
# 详见docs/01-02-k3s-工作节点.md
# 方案一:默认数据目录
# curl -sfL https://get.k3s.io | \
# K3S_URL=https://192.168.2.61:6443 \
# K3S_TOKEN=<TOKEN> \
# sh -
# 方案二:数据盘
# curl -sfL https://get.k3s.io | sh -s - agent \
# --data-dir=/storage \
# --server https://192.168.2.61:6443 \
# --token <TOKEN>
echo "[INFO] 将占位符替换为控制面地址与 token 后执行。"