This is a fork of bitname-labs/kubewatch and simplifies everything to only include Slack webhook. I did this to learn how to write a Kubernetes custom controller.
Build the code and upload it to your Dockerhub
make docker-push GITHUB_USERNAME=knappek
Adapt image
in kubewatch.yaml and the Slack Token in kubewatch-configmap.yaml.
Finally, apply it to a Kubernetes cluster
kubectl apply -f kubewatch-configmap.yaml -f kubewatch-service-account.yaml -f kubewatch.yaml