Kubernetes chatbot for Slack
Clone or download
spiddy Merge pull request #13 from hamid2013/patch-1
updating the docker client
Latest commit c647202 Aug 1, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Jun 2, 2016
Dockerfile updating the docker client Aug 1, 2018
LICENSE Initial commit Jun 2, 2016
README.md Updated readme with valid commands Jun 22, 2016
captain.yml Added Dockerfile and captain.yml Jun 13, 2016
execute.go Updated execute to catch stderr Jun 9, 2016
kubebot.go Updated error message Jun 23, 2016
main.go Improved error messages Jun 22, 2016
stringutils.go Fix some typos Jun 14, 2016



Kubebot is a Kubernetes chatbot for Slack.

This project is in active development and it's not ready for production yet.


To run Kubebot on Slack, first you need to create a new bot user integration on Slack and get the token.

Then you need to know the channel ids where you want to run the Kubebot. You can get them on https://slack.com/api/channels.list?token={REPLACE WITH YOUR TOKEN}

How to run it

Using Kubernetes charts

The fastest way to run Kubebot in your Kubernetes cluster is using the Kubebot chart for Kubernetes.

Running the binary

It is possible to run the binary locally or in a server. First you need to download and compile this project using the Go compiler:

mkdir -p $GOPATH/github.com/harbur/kubebot
cd $_
git clone git@github.com:harbur/kubebot.git
go install -v github.com/harbur/kubebot

Then set up the following environment variables:

# use the token you generated in the setup

# use as many channels ids you want; use a space as a separator

# use as many admin nicknames as you want; use a space as separator

# set which kubectl commands the admins will be able to run
KUBEBOT_SLACK_VALID_COMMANDS="get describe logs explain"

After the setup, you can run the binary: