Get events sorted by time
Recent cluster events, oldest first — great for post-incident review
kubectl get events -A --sort-by='.lastTimestamp'
More kubectl commands
-
kubectl apply --server-side --dry-run=server -f file.yamlValidate manifest against live API without applying changes
-
kubectl get deployment/<name> -n <ns> -o yamlCurrent live state with managed fields stripped; useful as a base
-
kubectl delete pod <name> -n <ns> --grace-period=0 --forceRemove a Terminating pod immediately (use with caution)
-
kubectl cp <ns>/<pod>:/remote/path ./local-pathExtract a file from a running container
-
kubectl cordon <node>Mark node as unschedulable — no new pods land here