Created
August 31, 2022 17:30
-
-
Save mowings/df16235258271deb0c1ada80091c2b87 to your computer and use it in GitHub Desktop.
bash function for getting pod logs by prefix (single pod)
This file contains 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
# kube get pod logs by pod name | |
function podlogs() { | |
k logs -f $(k get pods | grep "$1" | cut -d ' ' -f 1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment