pykube
pykube copied to clipboard
How to do `kubectl cp` with the lib?
I need to copy files to/from containers in pods. What's the best way to do that with the pykube lib?
Sadly, kubectl cp
is just a kubectl exec 'tar ....'
, thus it only works with containers that have the tar command installed.
But I agree that having this command is sometimes useful. We've implemented kubectl cp
in python but having it natively in pykube could be great