robusta-dev / kubewatch

Watch k8s events and trigger Handlers
Apache License 2.0
630 stars 87 forks source link

Slack alerts for warning and error events #61

Closed mike-lloyd03 closed 1 year ago

mike-lloyd03 commented 1 year 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 1 year 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 1 year ago

Great. Thank you sir.

aantn commented 1 year ago

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