kubernetes local file system volume code example
Example 1: kubectl get file from pod
kubectl cp <some-pod>:/tmp/foo /tmp/bar
Example 2: kubernetes copy files to persistent volume
kubectl cp my-namepace/my-pod:/root/my-local-file -c my-container ./my-remote-location