kubectl-stash is a kubectl plugin that lets you treat your cluster like a key-value store.
Stash the content of a file:
$ tree
.
└── doge.svg
0 directories, 1 file
$ cat doge.svg | kubectl stash
kgggggg7
List stashed items:
$ kubectl stash ls
kgggggg7
Get a stashed item and store it in a file:
$ kubectl stash get kgggggg7 -o doge.svg
Remove a stashed file:
$ kubectl stash rm kgggggg7
Stash a directory:
$ tar -czvf - . | kubectl stash
i8sdd155
Unpack a stashed directory:
$ kubectl stash get i8sdd155 | tar -xzvf -