Get events sorted by time

Recent cluster events, oldest first — great for post-incident review

kubectl get events -A --sort-by='.lastTimestamp'

tool
kubectl73 commands
tags
debug

More kubectl commands

  • kubectl apply --server-side --dry-run=server -f file.yaml

    Validate manifest against live API without applying changes

  • kubectl get deployment/<name> -n <ns> -o yaml

    Current live state with managed fields stripped; useful as a base

  • kubectl delete pod <name> -n <ns> --grace-period=0 --force

    Remove a Terminating pod immediately (use with caution)

  • kubectl cp <ns>/<pod>:/remote/path ./local-path

    Extract a file from a running container

  • kubectl cordon <node>

    Mark node as unschedulable — no new pods land here

all 73 kubectl commands