Skip to content

Instantly share code, notes, and snippets.

@aliva
Created January 20, 2019 11:19
Show Gist options
  • Save aliva/aab8068df29c7bc11d3abed6718e4567 to your computer and use it in GitHub Desktop.
Save aliva/aab8068df29c7bc11d3abed6718e4567 to your computer and use it in GitHub Desktop.
kubectl get pods --no-headers -o custom-columns=":metadata.name" | xargs -I{} sh -c "kubectl logs {} > {}.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment