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

Include "tar" in the container to be able to "kubectl cp" #58

Open
gl opened this issue Dec 28, 2022 · 2 comments
Open

Include "tar" in the container to be able to "kubectl cp" #58

gl opened this issue Dec 28, 2022 · 2 comments

Comments

@gl
Copy link

gl commented Dec 28, 2022

gostatic is a very useful tool to publish files on the fly for testing. However putting files into the container in a kubernetes environement is not that easy as "kubectl cp" requires "tar" to be present in the container.

Is it an option for you ?

@lesinigo
Copy link

lesinigo commented Aug 3, 2023

IMHO that would needlessly enlarge the container image for everyone.
If you need that feature you should develop your own Dockerfile and build your custom image.

@marcio-pessoa
Copy link

I never found a solution to this problem, so I finally wrote an application to copy files without tar.
It is just a beta, but is working fine on my environment.

https://github.com/marcio-pessoa/kubectl-cp

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

No branches or pull requests

3 participants