Created
December 3, 2020 02:18
-
-
Save luckylittle/77319645f916e2614d8b4680712f6012 to your computer and use it in GitHub Desktop.
Probably the most important command for OpenShift troubleshooting
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
oc get events --sort-by='.lastTimestamp' --all-namespaces |
Another useful commands for troubleshooting:
oc get pods -A | grep -v "Running\|Completed\|Terminated\|Succeeded"
- shows only problematics podsoc get clusterversion && echo && oc get co && echo && oc get nodes -o wide
- general cluster status/health
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: The above command may fail with e.g.:
F0217 11:01:54.522792 9679 sorter.go:353] Field {.lastTimestamp} in [][][]reflect.Value is an unsortable type: interface, err: unsortable interface: interface
This is caused by the fact that some events have
<unknow>
or<invalid>
LAST SEEN timestamp.This should work in such cases:
oc get events --sort-by='.metadata.creationTimestamp' --all-namespaces