-
Notifications
You must be signed in to change notification settings - Fork 42.9k
kubectl cp fails on large files #60140
Copy link
Copy link
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.sig/cliCategorizes an issue or PR as relevant to SIG CLI.Categorizes an issue or PR as relevant to SIG CLI.sig/nodeCategorizes an issue or PR as relevant to SIG Node.Categorizes an issue or PR as relevant to SIG Node.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.sig/cliCategorizes an issue or PR as relevant to SIG CLI.Categorizes an issue or PR as relevant to SIG CLI.sig/nodeCategorizes an issue or PR as relevant to SIG Node.Categorizes an issue or PR as relevant to SIG Node.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Type
Projects
Status
Closed
Status
Done
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
Copying either a large file, or a large directory from a container via
kubectl cpresults in the error oferror: unexpected EOFand a failure to transfer. In my case, the file is 1.7G.I executed the following command
The command executes, however the terminal will print the error below after 10-14 seconds of execution, and no file is copied.
What you expected to happen:
The large file to be downloaded from the container.
How to reproduce it (as minimally and precisely as possible):
Add a large file >= 1.7G to any location in the pod. I was able to re-create this will the file on a PV, or locally on the image file system.
Execute
kubectl cpto download the large file. It will fail.Anything else we need to know?:
Environment:
kubectl version): v1.8.6, client v1.8.5uname -a):