LinuxCommandLibrary

kubectl-events

lists cluster events

TLDR

Show all events

$ kubectl events
copy
Events in namespace
$ kubectl events -n [namespace]
copy
Events for resource
$ kubectl events --for [pod/pod-name]
copy
Watch events
$ kubectl events --watch
copy
Filter by type
$ kubectl events --types=[Warning]
copy

SYNOPSIS

kubectl events [options]

DESCRIPTION

kubectl events lists cluster events. Events record significant occurrences like pod scheduling and container starts.
The command shows recent cluster activity. It's useful for monitoring and debugging cluster behavior.

PARAMETERS

-n NAMESPACE

Target namespace.
--for RESOURCE
Events for specific resource.
--watch
Watch for new events.
--types TYPES
Filter by event types.
-A, --all-namespaces
All namespaces.
--help
Display help information.

CAVEATS

Subcommand of kubectl. Events have TTL. Consider event aggregation for production.

HISTORY

kubectl events provides event viewing for Kubernetes cluster monitoring and troubleshooting.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community