Files
awoooi/k8s/velero
OG T 1a4be7b18a feat(k-mon): K3s monitoring integration (Phase K-MON)
- Add Velero metrics NodePort service (30885)
- Add K3s infrastructure alert rules:
  - VIP 6443 availability
  - Node ICMP checks
  - AWOOOI API/Web TCP checks
  - SignOz/Sentry availability
- Add Velero backup alerts (failed/missing)
- Add ADR-034 for ArgoCD GitOps adoption

Deployed to:
- K3s: velero-metrics service
- 188: Prometheus + Alertmanager configs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-28 21:57:57 +08:00
..

Velero Backup System

建立日期: 2026-03-28 (台北時間) 用途: K3s 叢集災難恢復備份

前置條件

  1. MinIO 已部署在 192.168.0.188:9000
  2. velero-backups bucket 已建立
  3. 具有 K3s cluster-admin 權限

部署步驟

# 1. SSH 到 K3s Master
ssh wooo@192.168.0.120

# 2. 套用 Velero 完整安裝
sudo kubectl apply -f https://raw.githubusercontent.com/owenhytsai/awoooi/main/k8s/velero/velero-install-full.yaml

# 3. 驗證安裝
sudo kubectl get pods -n velero
sudo kubectl get backupstoragelocation -n velero

使用方式

# 建立備份
velero backup create awoooi-$(date +%Y%m%d) --include-namespaces awoooi-prod

# 查看備份
velero backup get

# 還原備份
velero restore create --from-backup awoooi-20260328

# 建立定時備份 (每日 3:00)
velero schedule create awoooi-daily --schedule="0 3 * * *" --include-namespaces awoooi-prod --ttl 168h

MinIO 存取資訊

項目
Endpoint http://192.168.0.188:9000
Console http://192.168.0.188:9001
User minio_admin
Bucket velero-backups