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

13
apps/postgres/stop.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
# 用途:停止 Postgres不刪 PVC 與 Secret
set -euo pipefail
echo "停止 Postgres 中..."
kubectl delete deployment postgres --ignore-not-found
kubectl wait --for=delete pod -l app=postgres --timeout=60s || true
kubectl delete service postgres --ignore-not-found
echo "Postgres 已停止(資料仍保留)"