kubectl cp <arg>

Copy files and directories to and from containers

Arguments

NameDescription
arg

Options

NameDescription
-c, --container <arg>Container name. If omitted, the first container in the pod will be chosen
--no-preserve <arg>The copied file/directory's ownership and permissions will not be preserved in the container