Initial commit: k8s cluster manifests and scripts

This commit is contained in:
2026-04-01 15:34:02 +08:00
commit 2f04fa4473
49 changed files with 4109 additions and 0 deletions

35
README.md Normal file
View File

@@ -0,0 +1,35 @@
# K8s 叢集維護記錄
## 連線資訊
- **主機**: 192.168.42.120
- **帳號**: ubuntu (SSH Key 登入)
- **sudo**: `sudo -i` 可直接成為 root
## K3s 目錄
- **遠端**: `/root/k8s`
- **本地**: `/Users/timmy/42_120/k8s`
## 已部署服務
### CodiMD (筆記應用)
- manifests: `apps/codimd/manifests/`
- 備份: `apps/codimd/backup/`
- 腳本: deploy.sh, stop.sh, status.sh, backup.sh, restore.sh
### Opengist (Git Snippets)
- manifests: `apps/opengist/manifests/`
- 備份: `apps/opengist/backup/`
- 腳本: deploy.sh, stop.sh, status.sh, backup.sh, restore.sh
### PostgreSQL (資料庫)
- manifests: `apps/postgres/manifests/`
- 備份: `apps/postgres/backups/`
- 腳本: deploy.sh, stop.sh, status.sh, backup.sh
## 叢集工具
- `cluster/check_access.sh` - 檢查存取權限
- `cluster/check_nodes.sh` - 檢查節點狀態
- `cluster/check_storage.sh` - 檢查儲存空間
---
⚠️ 維護時請同步更新本地與遠端檔案