A simple kubectl binary (binary, ha!) plugin to create and optionally populate PVCs.
Without cloning the repo, on your client:
curl -L https://github.com/fabiand/kubectl-plugin-pvc/raw/master/install.sh | bash
Or: After cloning the repo, On your client:
$ bash install.sh
$ kubectl plugin pvc create my-data 10Gi README.md README.md
In order to create a new PVC called fedora
with a size of 10Gi and copy the
local README.md
into a file called README.md
on the new PVC.
$ kubectl plugin pvc cp my-data README.md README.md
$ kubectl plugin pvc cat my-data README.md