commands.sh

kubectl events

all

Display resource events.

More info →

Options (4)

-A, --all-namespacesboolean

Show events in all namespaces

Example: kubectl events {{[-A|--all-namespaces]}}
-w, --watchboolean

Watch events in a specific namespace

Example: kubectl events {{[-w|--watch]}} {{[-n|--namespace]}} {{namespace}}
-n, --namespaceboolean

Watch events in a specific namespace

Example: kubectl events {{[-w|--watch]}} {{[-n|--namespace]}} {{namespace}}
-o, --outputboolean

Output events in YAML format

Example: kubectl events {{[-o|--output]}} yaml

Examples (7)

Show events in the default namespace

Show events in all namespaces

kubectl events [-A|--all-namespaces]

Watch events in a specific namespace

kubectl events [-w|--watch] [-n|--namespace] namespace

Show events for a pod in a specific namespace

kubectl events --for pod/pod_name [-n|--namespace] namespace

Show events for a resource in a specific namespace

kubectl events --for resource/resource_name [-n|--namespace] namespace

Show events for type `Warning` or `Normal`

kubectl events --types Warning,Normal

Output events in YAML format

kubectl events [-o|--output] yaml
made by @shridhargupta | data from tldr-pages