Created
January 23, 2019 23:06
-
-
Save shcallaway/ac19d93626359b3a0d6c1130b7d1925f to your computer and use it in GitHub Desktop.
Copy a file from a Kubernetes pod to local filesystem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo Namespace: $1 | |
| echo Pod: $2 | |
| echo Source file: $3 | |
| echo Target file: $4 | |
| kubectl cp $1/$2:$3 $4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment