Unable to create a tarball: archive/tar: write too long Unable to create a tarball: archive/tar: write too long kubernetes kubernetes

Unable to create a tarball: archive/tar: write too long


I had this problem with a Node.js project. Deleting the node_modules folder (rm -rf node_modules) fixed it for me.


Did you find a solution for this already? if not, try running below command and find out if any symlinks exist.ls -laR . | grep -B 5 " -> "

This may help you find dependencies from node_modules like folders that may be using symlinks.