Reloader icon indicating copy to clipboard operation
Reloader copied to clipboard

Reloader Reporting and Alerting

Open AnuragEkkati opened this issue 3 years ago • 6 comments

Reloader as of today from what I understand doesn't report which deployment/statefulset/daemonset has been reloaded by it and what event ( secret/configmap ) triggered it.

Also it will be really awesome if we have a simple webhook which we can enable to alert when the reloader did its job of reloading and provide info related to that

/kind feature

AnuragEkkati avatar Jun 18 '22 14:06 AnuragEkkati

Can i work on this feature ?

AnuragEkkati avatar Jun 18 '22 14:06 AnuragEkkati

@faizanahmad055 what do you think? Would be nice to add this feature I believe

rasheedamir avatar Jun 18 '22 20:06 rasheedamir

@AnuragEkkati Thank you, it is a good feature and you are welcome to work on it. But I think we should make alerting optional because depending on the number of reloads happening, it can easily cluster the alerting channels. Currently, it does show you information about what deployment and secret/configmap got updated in the logs. But it doesn't show the content that was updated because of security reasons so we need to be careful about that part as well.

faizanahmad055 avatar Jun 18 '22 20:06 faizanahmad055

Yes, it should be optional

AnuragEkkati avatar Jun 19 '22 05:06 AnuragEkkati

Reporting it as a standard k8s event would be nice.

Mockup:

$ kubecetl get events
LAST SEEN   TYPE     REASON           OBJECT              MESSAGE
2m          Normal   ReloadTriggered  deployment/myapp    Reload of deployment "myapp" triggered due to changed ConfigMap "ca-bundle"

We use https://github.com/openshift/eventrouter/ to log events to stdout where they get picked up by the central logging.

vinzent avatar Jun 23 '22 08:06 vinzent