How to copy files from a windows kubernetes pod container How to copy files from a windows kubernetes pod container kubernetes kubernetes

How to copy files from a windows kubernetes pod container


The correct way is, to omit the drive letter:

kubectl cp <pod_name>:filename

for example:

kubectl cp a8677:testlog2.txt ./t2.txt

If the file is inside a subdirectory, the path needs to contain slashes, and no backslashes:

kubectl cp a8677:my/file/path/file.txt ./myfile.txt