Skip to content

Instantly share code, notes, and snippets.

@shcallaway
Created January 23, 2019 23:06
Show Gist options
  • Select an option

  • Save shcallaway/ac19d93626359b3a0d6c1130b7d1925f to your computer and use it in GitHub Desktop.

Select an option

Save shcallaway/ac19d93626359b3a0d6c1130b7d1925f to your computer and use it in GitHub Desktop.
Copy a file from a Kubernetes pod to local filesystem
#!/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