Add k3s cluster expansion documentation and scripts
- Complete expansion guide for 2/4/6 node scenarios - Quick join scripts for worker and master nodes - Health check and diagnostic scripts - Quick reference card for common operations
This commit is contained in:
68
biji.md
Normal file
68
biji.md
Normal file
@@ -0,0 +1,68 @@
|
||||
k3s集群部署完成!
|
||||
|
||||
📊 部署总结
|
||||
|
||||
✅ 集群状态
|
||||
|
||||
- k3s版本: v1.34.3+k3s1
|
||||
- 节点状态: Ready (control-plane)
|
||||
- 运行中的Pods: 35个
|
||||
- 存储系统: Longhorn (分布式存储)
|
||||
- 证书管理: cert-manager + Let's Encrypt
|
||||
|
||||
🚀 已部署的服务
|
||||
|
||||
所有服务都已实现无状态化部署,数据和存储完全解耦:
|
||||
┌─────────────────┬───────────────────────────────┬────────────┬─────────────┬─────────────────┐
|
||||
│ 服务 │ 域名 │ 状态 │ 存储 │ HTTPS │
|
||||
├─────────────────┼───────────────────────────────┼────────────┼─────────────┼─────────────────┤
|
||||
│ WordPress博客 │ https://blog.u9.net3w.com │ ✅ Running │ 2Gi (MySQL) │ ✅ │
|
||||
├─────────────────┼───────────────────────────────┼────────────┼─────────────┼─────────────────┤
|
||||
│ Docker Registry │ https://registry.u9.net3w.com │ ✅ Running │ 20Gi │ ⏳ (证书申请中) │
|
||||
├─────────────────┼───────────────────────────────┼────────────┼─────────────┼─────────────────┤
|
||||
│ n8n工作流 │ https://n8n.u9.net3w.com │ ✅ Running │ 5Gi │ ✅ │
|
||||
├─────────────────┼───────────────────────────────┼────────────┼─────────────┼─────────────────┤
|
||||
│ Gitea代码仓库 │ https://git.u9.net3w.com │ ✅ Running │ 10Gi │ ✅ │
|
||||
├─────────────────┼───────────────────────────────┼────────────┼─────────────┼─────────────────┤
|
||||
│ Uptime Kuma监控 │ https://status.u9.net3w.com │ ✅ Running │ 2Gi │ ✅ │
|
||||
├─────────────────┼───────────────────────────────┼────────────┼─────────────┼─────────────────┤
|
||||
│ 导航页 │ https://nav.u9.net3w.com │ ✅ Running │ - │ ✅ │
|
||||
└─────────────────┴───────────────────────────────┴────────────┴─────────────┴─────────────────┘
|
||||
💾 存储配置
|
||||
|
||||
所有数据都使用Longhorn持久化存储,实现了容器与数据的完全解耦:
|
||||
- MySQL数据库: 2Gi独立存储卷
|
||||
- Docker镜像仓库: 20Gi独立存储卷
|
||||
- Gitea代码仓库: 10Gi独立存储卷
|
||||
- n8n工作流数据: 5Gi独立存储卷
|
||||
- Uptime Kuma监控数据: 2Gi独立存储卷
|
||||
|
||||
🔐 安全配置
|
||||
|
||||
- ✅ 自动HTTPS证书(Let's Encrypt)
|
||||
- ✅ Traefik Ingress Controller
|
||||
- ✅ Docker Registry认证(用户名: admin, 密码: 123456)
|
||||
|
||||
📝 常用命令
|
||||
|
||||
# 查看所有服务
|
||||
kubectl get pods -A
|
||||
|
||||
# 查看存储卷
|
||||
kubectl get pvc -A
|
||||
|
||||
# 查看域名和证书
|
||||
kubectl get ingress -A
|
||||
kubectl get certificate -A
|
||||
|
||||
# 查看Longhorn UI (可选)
|
||||
kubectl get svc -n longhorn-system
|
||||
|
||||
⚠️ 注意事项
|
||||
|
||||
1. Registry证书: registry.u9.net3w.com的SSL证书还在申请中,稍等几分钟会自动完成
|
||||
2. DNS解析: 确保所有*.u9.net3w.com子域名都已正确解析到 134.195.210.237
|
||||
3. 数据持久化: 所有数据都存储在Longhorn卷中,容器重启不会丢失数据
|
||||
|
||||
所有服务已成功实现无状态化部署,可以随时重启、扩容或迁移! 🎊
|
||||
|
||||
Reference in New Issue
Block a user