https://github.com/clbx/kubectl-browse-pvc
Kubectl plugin for browsing PVCs on the command line
https://github.com/clbx/kubectl-browse-pvc
kubectl kubectl-plugins kubernetes pvc
Last synced: 3 months ago
JSON representation
Kubectl plugin for browsing PVCs on the command line
- Host: GitHub
- URL: https://github.com/clbx/kubectl-browse-pvc
- Owner: clbx
- License: mit
- Created: 2023-01-18T18:39:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2026-04-17T04:13:27.000Z (3 months ago)
- Last Synced: 2026-04-17T05:21:54.704Z (3 months ago)
- Topics: kubectl, kubectl-plugins, kubernetes, pvc
- Language: Go
- Homepage:
- Size: 170 KB
- Stars: 241
- Watchers: 2
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kubectl-browse-pvc
Kubectl plugin to browse a Kubernetes PVC from the command line
I constantly found myself spinning up dummy pods to exec into them so I could browse a PVC, this takes a few steps out of creating dummy pods to check out the contents of a PVC.
## Installation
Install via krew
```sh
kubectl krew install browse-pvc
```
## Usage
```sh
kubectl browse-pvc
```
On a PVC. The tool spins up a pod that mounts the PVC and then execs into it allowing you to modify the contents of the PVC. The Job finishes and cleans up the pod when you disconnect.
Commands can be described to run a command instead of popping a shell
```sh
kubectl browse-pvc --
```
A User ID can be described to set the user the container runs as
```sh
kubectl browse-pvc -u 1000
```
### Configuring auto-completion
```sh
cat > kubectl_browse-pvc <
```
Example: `go test -v github.com/clbx/kubectl-browse-pvc/internal/utils`
### Build
```sh
go build -v -o kubectl-browse-pvc cmd/browse-pvc/main.go
```