Openshift - Logs and Events
Commands
Events
Display cluster events:
Logs
Display pod logs:
oc logs {pod} (--tail {line}) (-f) (--timestamps)
# Examples:
# Display pod logs with timestamp:
# oc logs my-pod --timestamps
# Display 100 last logs line of a pod:
# oc logs my-pod --tail 100
Support
Create must-gather:
Create must-gather with network logs:
Create support file for a namespace: