A utility to post changes to kubernetes deployments to Slack. Developed particularly for use with flux but can be used with any Kubernetes set-up. Tested with EKS 1.16 and K3S (Kubernetes 1.17)
It listens to kubernetes deployment states and is interested when:
- Any kubernetes deployment is rolling out a new version
- If a kubernetes deployment is not healthy (Ready replicas is less than expected replicas)
It posts nice dynamic status updates for the above to slack
Please don't use this to replace more mature monitoring tools (prometheus etc), this is for informational purposes only.
Check deploy/* for example manifests.
The following ENV variables are used:
- SLACK_TOKEN - A Slack Bot User OAuth Access Token - mandatory
- SLACK_CHANNEL - Slack channel, defaults to "#general"
- CLUSTER_NAME - this is prefixed for most messages on slack, defaults to "Kubernetes Cluster"
- PROGRESS_IMAGE, OK_IMAGE, WARNING_IMAGE - the URLs of images used for the slack notifications. Defaults to kinda ugly creative commons images, but does the job. (dont use SVGs I learned.)