Files
k3s/cluster/check_storage.sh

15 lines
268 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/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