Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting NotificationDispatchFailed in the Alerts when I try to send notification to Slack. #965

Open
praiaCristianMaluenda opened this issue Oct 25, 2024 · 0 comments

Comments

@praiaCristianMaluenda
Copy link

Hi,
I am trying to send the notifications to Slack. I set the Provider and the Alert. The secret map has the token and I can use it to send messages within a container using curl, but flux fails.

I found this error message in the Alert resource:

Warning  NotificationDispatchFailed  11m (x14 over 2d3h)  notification-controller  failed to send notification for Kustomization/tenant/apps: postMessage failed: failed to execute request: context deadline exceeded

My Flux check is:

✗ flux 2.2.3 <2.4.0 (new CLI version is available, please upgrade)
✔ Kubernetes 1.28.14 >=1.26.0-0
► checking version in cluster
✔ distribution: flux-v2.2.2
✔ bootstrapped: false
► checking controllers
✔ helm-controller: deployment ready
► ghcr.io/fluxcd/helm-controller:v0.37.2
✔ kustomize-controller: deployment ready
► ghcr.io/fluxcd/kustomize-controller:v1.2.1
✔ notification-controller: deployment ready
► ghcr.io/fluxcd/notification-controller:v1.2.3
✔ source-controller: deployment ready
► ghcr.io/fluxcd/source-controller:v1.2.3
► 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
✔ kustomizations.kustomize.toolkit.fluxcd.io/v1
✔ ocirepositories.source.toolkit.fluxcd.io/v1beta2
✔ providers.notification.toolkit.fluxcd.io/v1beta3
✔ receivers.notification.toolkit.fluxcd.io/v1

I have no idea what I am missing. Does anyone have any suggestions?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant