From e6a790348bb250f8a60208c0aeccc07ce0b2666f Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Wed, 25 Sep 2024 18:22:35 +0200 Subject: [PATCH] chore(snippets/kubectl): add a way to check pvs' usage --- snippets/kubectl.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/snippets/kubectl.sh b/snippets/kubectl.sh index 3daee4f..1339f3c 100644 --- a/snippets/kubectl.sh +++ b/snippets/kubectl.sh @@ -50,3 +50,7 @@ reclaimPolicy: Delete volumeBindingMode: WaitForFirstConsumer allowVolumeExpansion: true EOF + +# Check persistent volumes' usage +# Need to connect to the pod mounting it +kubectl -n 'gitea' exec 'gitea-766fd5fb64-2qlqb' -c 'gitea' -- df -h '/data'