kubectl copy file from local to pod code example
Example 1: 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 2: copy data to kubernetes pod
kubectl cp <file-spec-src> <file-spec-dest> -c <specific-container>