robusta-dev / kubewatch

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

Slack alerts for warning and error events #61

Closed mike-lloyd03 closed 7 months ago

mike-lloyd03 commented 7 months ago

Thanks for maintaining this. I'm trying to set this up in my cluster so I can receive a Slack notification whenever a warning or error level event occurs in the cluster. For example, an image pull failure or a container exists with non-zero exit code.

I do not need reporting for every event that happens. Is there a way to do this?

Thank you.

aantn commented 7 months ago

Hi @mike-lloyd03, This functionality is implemented in https://github.com/robusta-dev/robusta which sits on top of KubrWatch and applies more logic.

Here are two examples for the triggers you mentioned:

mike-lloyd03 commented 7 months ago

Great. Thank you sir.

aantn commented 7 months ago

My pleasure, we're on Slack if you have questions: https://bit.ly/robusta-slack