Last active
March 26, 2023 22:28
-
-
Save dkeightley/6b01caef4d20d055c76f53d82d9515b2 to your computer and use it in GitHub Desktop.
Revisions
-
dkeightley revised this gist
Mar 26, 2023 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,4 @@ for pod in $(kubectl get pods -n cattle-system -l app=rancher --no-headers -o custom-columns=":metadata.name") do kubectl logs -n cattle-system $pod -c rancher --since=48h |& gzip > $pod.log.gz done -
dkeightley created this gist
Mar 26, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ for pod in $(kubectl get pods -n cattle-system -l app=rancher --no-headers -o custom-columns=":metadata.name") do kubectl logs -n cattle-system $pod -c rancher |& gzip > $pod.log.gz kubectl logs -n cattle-system $pod -c rancher -p |& gzip > $pod.previous.log.gz done