k9s icon indicating copy to clipboard operation
k9s copied to clipboard

Show events by\from resource (Pod, SS, DS, Deployment etc)

Open slimus opened this issue 3 years ago • 4 comments




Is your feature request related to a problem? Please describe. Openshift resource pages (pods, deployments, ss, ds etc) have a tab with events (related to the resource). It is very helpful if you need to see and\or find a problem. Screenshot: pod-event-openshift

The idea is to add a new view for the resources and show event messages related to them. Use shortcut or other one to open view.

Describe alternatives you've considered

  1. kubectl describe <pod-name>
  2. k9s -> :events -> filter by pod name -- but I can't see messages in the list, I need to open each event to see details
  3. k9s -> :po -> select pod -> d and scroll down to Events section

Community, feel free to add your thoughts here! Thanks!

slimus avatar Jul 26 '22 17:07 slimus

On the d for describe, scroll down and toggle auto-refresh with r - that way you will see also the events with their messages live.

But still +1 for some :events alternative enriched with a message view.

jzyinq avatar Jan 25 '23 20:01 jzyinq

Most pods only contain only few containers.

If you are looking at the containers of a pod, the screen has some empty space which could get used for displaying events.

But having a a column in the list-view of pods would be great, too.

guettli avatar Mar 14 '23 09:03 guettli

I would also appreciate this feature, as it would make it way easier for debugging.

ohdearaugustin avatar May 29 '24 12:05 ohdearaugustin

is there a workaround ?

sibelius avatar Oct 15 '24 14:10 sibelius

I don't know if this is exactly what you peeps are looking for, but k9s has a community plugin page where someone has created a nice way to do this for a highlighted resource in k9s.

https://github.com/derailed/k9s/blob/master/plugins/watch-events.yaml

If you haven't used the plugins before, I highly recommend it. Easy to set up and make your own.

zgastley avatar Jan 16 '25 18:01 zgastley