kubectl-browse-pvc
kubectl-browse-pvc copied to clipboard
Provide specific command to execute instead of browsing?
For example, I just want to check how much space available, can I provide a command to execute and then exit out?
kubectl browse-pvc -n home-assistant volsync-home-assistant-cache "df -h ."
Filesystem Size Used Available Use% Mounted on
/dev/rbd2 3.9G 41.8M 3.8G 1% /mnt
Instead of:
kubectl browse-pvc -n home-assistant volsync-home-assistant-cache
✓ Pod Started
pvcb-edit-volsync-home-assistant-cache-x95m4:/mnt# df -h .
Filesystem Size Used Available Use% Mounted on
/dev/rbd2 3.9G 41.8M 3.8G 1% /mnt
pvcb-edit-volsync-home-assistant-cache-x95m4:/mnt# exit
exit