Created
July 10, 2019 12:53
-
-
Save nmeylan/15776051690d53acccbf7a84722ce3b7 to your computer and use it in GitHub Desktop.
tail kubernetes logs
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
#!/bin/sh | |
kubectl get pods -n NAMESPACE | grep -o -e .*${1}[\-a-z0-9]* | while read line; do kubectl logs -f $line -n NAMESPACE -c ${1} --tail 100; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment