Monitor Kubernetes cluster operations on various webhook services
- Add Slack webhook support
- Create modular components for services
- Add more Kubernetes operations to watchlist
- Add support for miscellaneous Kubernetes cluster services
- Create Discord bot for performing ops
This is designed to run as a single replica on a Google Kubernetes Engine cluster.
- Edit config.json, add your webhook URL
- Modify enabled events to your needs
- Build the image and submit it to container registry (takes a while due to Kube api):
gcloud container builds submit --tag gcr.io/cx-network-204116/kubehook
- Edit kubehook-worker.yaml to support your image tag
- Connect to your cluster
- Create the role binding:
kubectl create rolebinding kh --clusterrole=view --serviceaccount=default:default
- Create the deployment
kubectl create -f kubehook-worker.yaml