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

12
apps/codimd/stop.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
echo "--- 安全停止 CodiMD (保留資料) ---"
# 只刪除 Deployment, Service, Ingress, Middleware
# 故意跳過 02-codimd-pvc.yaml 和 01-codimd-secrets.yaml
kubectl delete -f manifests/03-codimd-db-deployment.yaml --ignore-not-found
kubectl delete -f manifests/05-codimd-app-deployment.yaml --ignore-not-found
kubectl delete -f manifests/04-codimd-db-svc.yaml --ignore-not-found
kubectl delete -f manifests/06-codimd-app-svc.yaml --ignore-not-found
kubectl delete -f manifests/07-codimd-ingress.yaml --ignore-not-found
echo "✅ 服務已停止Longhorn 磁碟資料安全保留。"