Awesome
A simple kubectl binary (binary, ha!) plugin to create and optionally populate PVCs.
Installation
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
Usage
Create and (optionally) upload
$ 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.
Upload
$ kubectl plugin pvc cp my-data README.md README.md
Cat contents
$ kubectl plugin pvc cat my-data README.md