goStatic icon indicating copy to clipboard operation
goStatic copied to clipboard

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

Open gl opened this issue 2 years ago • 2 comments

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 ?

gl avatar Dec 28 '22 09:12 gl

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.

lesinigo avatar Aug 03 '23 11:08 lesinigo

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

marcio-pessoa avatar Jan 08 '24 22:01 marcio-pessoa