Initial commit: k8s cluster manifests and scripts
This commit is contained in:
14
cluster/check_storage.sh
Executable file
14
cluster/check_storage.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user