The following command:

kubectl cp pod-name-0:example_file.tar.gz example_file.tar.gz

It returns the following error:

error: unexpected EOF

And the file it is partially copied.

Solution

Disabling the feature client-side via export KUBECTL_REMOTE_COMMAND_WEBSOCKETS=false fixed it.


📌 GitHub Issue