Commands.app

kubectl cp

Debugging

Copy files to/from containers

Examples
Common usage examples

Copy from pod to local

kubectl cp mypod:/app/logs.txt ./logs.txt

Copy from local to pod

kubectl cp ./config.txt mypod:/app/config.txt

Copy from specific container

kubectl cp mypod:/data ./data -c mycontainer
Notes
  • Requires tar in container
Related Commands
You might also find these useful