Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Kubectl cp command over writes the running process executable without warning #78892
What happened: While performing kubectl cp of an executable from host to a container in pod. It copied successfully and modified all the permission of the existing file. The running process crashed.
What you expected to happen: kubectl cp should not perform direct copy of running executable files in usage from some other process. Instead it should report error for the same.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?: usually cp command reports error when a copy is performed on a running executable file. It prevents direct copy.
@VinodKumarGoku: There are no sig labels on this issue. Please add a sig label by either:
Note: Method 1 will trigger an email to the group. See the group list.