events

get info

list all warning events

$ kubectl get events --field-selector type=Warning --all-namespaces --sort-by='{.lastTimestamp}'

list particular events

$ kubectl get event --field-selector=involvedObject.name =foo -w

list events for pods

$ kubectl -n monitoring events --for pods/prometheus-stack-prometheus-node-exporter-9764m --watch

Last updated