Options (4)
-A, --all-namespacesbooleanShow events in all namespaces
Example:
kubectl events {{[-A|--all-namespaces]}}-w, --watchbooleanWatch events in a specific namespace
Example:
kubectl events {{[-w|--watch]}} {{[-n|--namespace]}} {{namespace}}-n, --namespacebooleanWatch events in a specific namespace
Example:
kubectl events {{[-w|--watch]}} {{[-n|--namespace]}} {{namespace}}-o, --outputbooleanOutput events in YAML format
Example:
kubectl events {{[-o|--output]}} yamlExamples (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] namespaceShow events for a pod in a specific namespace
kubectl events --for pod/pod_name [-n|--namespace] namespaceShow events for a resource in a specific namespace
kubectl events --for resource/resource_name [-n|--namespace] namespaceShow events for type `Warning` or `Normal`
kubectl events --types Warning,NormalOutput events in YAML format
kubectl events [-o|--output] yamlmade by @shridhargupta | data from tldr-pages