Skip to content

Instantly share code, notes, and snippets.

@esweeney-cg
Last active March 14, 2023 15:57
Show Gist options
  • Save esweeney-cg/e48e7bdbdd6b1f4a88bf1f792f37d8d7 to your computer and use it in GitHub Desktop.
Save esweeney-cg/e48e7bdbdd6b1f4a88bf1f792f37d8d7 to your computer and use it in GitHub Desktop.
copy file from pod to local

copy file from pod to local

kubectl cp <pod-name>:<fully-qualified-file-name> /<path-to-your-file>/<file-name> -c <container-name>

copy file from local to pod

kubectl cp /<path-to-your-file>/<file-name> <pod-name>:<fully-qualified-file-name> -c <container-name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment