robusta-dev / kubewatch

Watch k8s events and trigger Handlers
Apache License 2.0
604 stars 84 forks source link

Duplicate Messages #73

Open marcelosauter opened 5 months ago

marcelosauter commented 5 months ago

Good afternoon . Okay, I'm using the project, congratulations for the same. I just configured it and I'm testing something I saw and it generates 3 identical messages for a change. Do you know how I can fix it?

A Pod in namespace test has been Created: test 14h38 A Pod in namespace test has been Updated: test 14h38 A Pod in namespace test has been Updated: test 14h38 A Pod in namespace est has been Updated: test

arikalon1 commented 5 months ago

Hi @marcelosauter

Kubewatch listens to the api server, is is notified on any change to the Kubernetes resource. When a pod is created, it's being updated while Kubernetes is scheduling and running it (it's status will change from Pending to Running for example)

What exactly do you want to be notified about?

You can also checkout Robusta (which receives data from Kubewatch) and allows more filters on notifications

marcelosauter commented 5 months ago

I want to recevied just one message .Do you know how do that?