goStatic
goStatic copied to clipboard
Include "tar" in the container to be able to "kubectl cp"
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 ?
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.
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