kubectl cp
DebuggingCopy files to/from containers
Examples
Common usage examples
Copy from pod to local
kubectl cp mypod:/app/logs.txt ./logs.txtCopy from local to pod
kubectl cp ./config.txt mypod:/app/config.txtCopy from specific container
kubectl cp mypod:/data ./data -c mycontainerNotes
- Requires tar in container
Related Commands
You might also find these useful