DEV Community

Cover image for Monitor your cluster k8S and track event notifications to Slack,Discord,Teams with Botkube
Javid Mougamadou
Javid Mougamadou

Posted on

Monitor your cluster k8S and track event notifications to Slack,Discord,Teams with Botkube

Concepts

Alt Text

BotKube is a messaging bot for monitoring and debugging Kubernetes clusters.

BotKube can be integrated with multiple messaging platforms like - Slack, Mattermost, Microsoft Teams to help you monitor your Kubernetes cluster(s), debug critical deployments and gives recommendations for standard practices by running checks on the Kubernetes resources.

Example Installation for Slack

  • Install BotKube Slack app to your Slack workspace

  • Click the Add to Slack button provided to install BotKube Slack application to your workspace. Once you have authorized the application, you will be provided a BOT Access token. Kindly note down that token as it will be required while deploying BotKube backend to your Kubernetes cluster.

  • Add BotKube user to a Slack channel

  • After installing BotKube app to your Slack workspace, you could see a new bot user with the name “BotKube” added in your workspace. Add that bot to a Slack channel you want to receive notification in. (You can add it by inviting @BotKube in a channel)

  • Install botkube via helm chart

helm repo add infracloudio https://infracloudio.github.io/charts
helm repo update
Enter fullscreen mode Exit fullscreen mode
helm install --version v0.12.0 botkube --namespace botkube \
--set communications.slack.enabled=true \
--set communications.slack.channel=<SLACK_CHANNEL_NAME> \
--set communications.slack.token=<SLACK_API_TOKEN_FOR_THE_BOT> \
--set config.settings.clustername=<CLUSTER_NAME> \
--set config.settings.kubectl.enabled=<ALLOW_KUBECTL> \
--set image.repository=infracloudio/botkube \
--set image.tag=v0.12.0 \
infracloudio/botkube
Enter fullscreen mode Exit fullscreen mode

Configuration for Corporate Proxy

  • Pull locally the helm chart
helm pull infracloudio/botkube
Enter fullscreen mode Exit fullscreen mode
  • Add theses environment variables HTTP_PROXY, HTTPS_PROXY and NO_PROXY in botkube/templates/deployment.yaml
...
            - name: HTTP_PROXY
              value: http://my-proxy:port
            - name: HTTPS_PROXY
              value: http://my-proxy:port
            - name: NO_PROXY
              value: 10.90.0.1,k8s-ip
...
Enter fullscreen mode Exit fullscreen mode

Links

Top comments (0)