kubectl-browse-pvc icon indicating copy to clipboard operation
kubectl-browse-pvc copied to clipboard

Provide specific command to execute instead of browsing?

Open reefland opened this issue 11 months ago • 0 comments

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

reefland avatar Mar 09 '24 17:03 reefland