Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

How to do kubectl cp with the lib? #67

Open
piontec opened this issue May 19, 2020 · 1 comment
Open

How to do kubectl cp with the lib? #67

piontec opened this issue May 19, 2020 · 1 comment

Comments

@piontec
Copy link

piontec commented May 19, 2020

I need to copy files to/from containers in pods. What's the best way to do that with the pykube lib?

@Frankkkkk
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants