Closed nomanyaqub closed 4 months ago
Please post flux check
and mention how did you installed Flux.
❯ flux check ► checking prerequisites ✗ flux 2.2.3 <2.3.0 (new CLI version is available, please upgrade) ✔ Kubernetes 1.28.8-gke.1095000 >=1.26.0-0 ► checking version in cluster ✔ distribution: flux-v2.2.3 ✔ bootstrapped: false ► checking controllers ✔ helm-controller: deployment ready ► ghcr.io/fluxcd/helm-controller:v0.37.4 ✔ notification-controller: deployment ready ► ghcr.io/fluxcd/notification-controller:v1.2.4 ✔ source-controller: deployment ready ► ghcr.io/fluxcd/source-controller:v1.2.4 ► checking crds ✔ alerts.notification.toolkit.fluxcd.io/v1beta3 ✔ buckets.source.toolkit.fluxcd.io/v1beta2 ✔ gitrepositories.source.toolkit.fluxcd.io/v1 ✔ helmcharts.source.toolkit.fluxcd.io/v1beta2 ✔ helmreleases.helm.toolkit.fluxcd.io/v2beta2 ✔ helmrepositories.source.toolkit.fluxcd.io/v1beta2 ✔ ocirepositories.source.toolkit.fluxcd.io/v1beta2 ✔ providers.notification.toolkit.fluxcd.io/v1beta3 ✔ receivers.notification.toolkit.fluxcd.io/v1 ✔ all checks passed
helm and source controller was installed using flux install --export | kubectl apply --dry-run=client -f-
some months ago, whereas notification-controller was installed just few days ago using flux install
command.
Rerun install for all controllers so they know about notification endpoint.
Thanks @stefanprodan that did the trick. Now I can see events coming from source and helm controllers.
BTW, is there a way to disable notifications from some controller. I would like notification-controller to not receive events from source controller, just to keep its logs clean.
You can patch the source-controller deployment and remove the notification endpoint from there, but it will be overrriten the moment you update Flux. The flux install
command is for testing, in real clusters you should be using bootstrap that allows customising Flux is various ways.
I have created provider and alert like below but unable to receive notifications.
Provider spec:
Alert spec:
Moreover, I am running notification-controller in debug mode, it does not show any information at all about alerts and providers.
I also tried getting logs of alerts but there is no much information.
Kubernetes events does have events about the HelmReleases objects. Can someone please help? Thanks.