- Create a Slack workspace and channel (or pick an existing one).
- Create a Slack App and add the correct OAuth bot scopes.
- If the channel is private, invite the bot to the channel.
- Store the Slack bot token as a Kubernetes Secret in the
flux-systemnamespace. - Create a Flux Provider and an Alert to route Flux events to Slack.
- Trigger a change and observe notifications in Slack.
- Administrative access to a Slack workspace (to create apps & install them).
- kubectl configured against the cluster where Flux is installed.
- Flux Notification controller installed (part of Flux toolkit).
flux-alerts-channel).


After adding scopes, click Install to Workspace (or Reinstall) to obtain the Bot User OAuth Token (
xoxb-...). Flux uses this bot token to authenticate to Slack.


flux-system namespace. Replace the token value with your Bot User OAuth Token:
Keep bot tokens secret. Consider storing them in a sealed secret or using the cluster’s secret-store integration where appropriate. Never commit tokens to Git.
notification-provider-slack.yml):
info severity:
notification-alert-slack.yml):

- Commit a change to a repository Flux reconciles (for example, update a Kustomization or change a Deployment replica count).
- Flux will fetch the commit, reconcile the resources, and the Notification controller will emit events.
- The Alert you configured will match those events and the Provider will dispatch messages to your Slack channel.
- Update a kustomized application (for example,
bb-app-source) to change replicas from 4 → 1. - Commit and push the change to the Git repository that Flux monitors.
- Flux detects the commit, applies the Kustomization, and you will receive Slack notifications for the GitRepository artifact and the Kustomization/Deployment reconciliation.
-
GitRepository event:
gitrepository/2-demo-source-git-bb-app.flux-system- stored artifact for commit ‘changed replica’
- revision
2-demo@sha1:310e0beacc0dea3b67239f3f92989717cdb6c635
-
Kustomization event:
kustomization/2-demo-kustomize-git-bb-app.flux-systemDeployment/2-demo/block-buster configured- revision
2-demo@sha1:310e0beacc0dea3b67239f3f92989717cdb6c635
If notifications do not appear in Slack:
- Confirm the bot token is correct and stored in
flux-system. - Ensure the bot is a member of the target channel (for private channels).
- Check Flux Notification controller logs for errors:
kubectl -n flux-system logs deploy/notification-controller.
- Flux Notification Controller: https://fluxcd.io/docs/components/notification/
- Slack Apps & OAuth: https://api.slack.com/apps
- Slack Bot Token scopes: https://api.slack.com/authentication/scopes