Chris Stryczynski

Software Developer / Consultant

How to copy files from Kubernetes pod?


Because Kubernetes is held together by code and duct tape the following is fudged up:

kubectl cp ../media nfs-server-72p8m:/exports returns success - but the files are not transferred

If you add the trailing slash though it works... kubectl cp ../media nfs-server-72p8m:/exports/