kubernetes copy file to pod code example
Example 1: kubectl get file from pod
kubectl cp <some-pod>:/tmp/foo /tmp/bar
Example 2: copy file to kubernetes pod
from host to pod:
kubectl cp /path/to/your_folder name-of-your-pod:/path/to/destination_folder
from pod to host:
kubectl cp name-of-your-pod:/path/to/your_folder /path/on_your_host/to/your_folder
Example 3: copy data to kubernetes pod
kubectl cp <file-spec-src> <file-spec-dest> -c <specific-container>