Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support extracting files from k8s container #77

Open
exdx opened this issue Nov 14, 2022 · 2 comments
Open

Support extracting files from k8s container #77

exdx opened this issue Nov 14, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@exdx
Copy link
Owner

exdx commented Nov 14, 2022

As a user, I would like to debug a live container running in my k8s cluster by copying files from that container's filesystem to my local filesystem.

For example,

dcp --cluster-container namespace/pod -d /tmp/data -c /data
@exdx exdx added the enhancement New feature or request label Nov 14, 2022
@tylerslaton
Copy link
Collaborator

Sounds like a nice feature. Think we should also include a --container for containers running locally as well?

@exdx
Copy link
Owner Author

exdx commented Nov 20, 2022

Started implementing this feature in #79. It looks like kube-rs doesn't have a native way to copy files, it relies on tar under the hood, which kubectl cp does as well.

I'm not sure I'm in love with the idea that tar must be present in the container for cp to work. It would prevent copying from containers built from static bases, which is considered a best practice for workloads.

I'm not sure the value of continuing to develop this feature, but if others in the community feel strongly then we can continue exploring it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants