robusta-dev / kubewatch

Watch k8s events and trigger Handlers
Apache License 2.0
547 stars 79 forks source link

Is it possible to get notified with the events happening in the pods? #17

Closed sreenusuuda closed 1 year ago

sreenusuuda commented 1 year ago

Hi Team,

Is it possible to get notified with the events happening in the pods? I see events are not notified. PFA for the screenshot having events which are not notified.

Screenshot 2023-01-16 at 3 19 43 PM
arikalon1 commented 1 year ago

Hi @sreenusuuda You should be able to get notified on events. Does your kubewatch logs contains line similar to this?

E0111 13:41:59.199162       1 reflector.go:123] pkg/mod/k8s.io/client-go@v0.16.8/tools/cache/reflector.go:96: Failed to list *v1.Event: Unauthorized
sreenusuuda commented 1 year ago

Hi @arikalon1

No, I do not see such log in kubewatch pod.

aantn commented 1 year ago

@sreenusuuda what container tag are you using?

sreenusuuda commented 1 year ago

@aantn

Here is the container image I found from the yaml file.

containers:

arikalon1 commented 1 year ago

@sreenusuuda , can you please share the logs of kubewatch?

aantn commented 1 year ago

@sreenusuuda you're running an old version without support for events. Can you try this tag:

us-central1-docker.pkg.dev/genuine-flight-317411/devel/kubewatch:v2.0

sreenusuuda commented 1 year ago

@aantn Sure, let me try it.

sreenusuuda commented 1 year ago

@aantn I used new Image, I still do not see pod events. Did not see below message as well E0111 13:41:59.199162 1 reflector.go:123] pkg/mod/k8s.io/client-go@v0.16.8/tools/cache/reflector.go:96: Failed to list *v1.Event: Unauthorized.

aantn commented 1 year ago

@sreenusuuda can you share the logs? You can also share it with @arikalon1 or myself in our Slack community if you prefer not to post publicly.

sreenusuuda commented 1 year ago

Closing this as Robusta wrapper solved the requirement.