If you often need to copy files from Kubernetes to work with them locally — this tool might come handy.
pv-mounter is a simple solution to mount Kubernetes PVs (Persistent Volumes) locally using SSHFS. It was born to automate the author’s need to copy files from his K8s cluster at home. Here’s what pv-mounter does:
- Creates a Pod with an SSH daemon, binds it to the existing PVC, creates a port-forward, and mounts the volume locally via SSHFS.
- Supports RWX and RWO volumes. If the RWO volume is mounted already, an ephemeral container and a reverse SSH tunnel are used.
- Comes with security in mind by using temporary SSH keys and minimal privileges for Pods.
▶️ GitHub repo
#tools #storage
Post #108
630
- 👍 5
- ❤ 1
- 🔥 1