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

14
cluster/check_storage.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
# 用途檢查儲存狀態PVC / Longhorn
set -euo pipefail
echo "=== PVC ==="
kubectl get pvc
if kubectl get ns longhorn-system >/dev/null 2>&1; then
echo
echo "=== Longhorn Volumes ==="
kubectl -n longhorn-system get volumes
fi