k8s-bot is a small Golang Bot that allow you to request your Kubernetes cluster via Hipchat.
10K+
k8s-bot is a small Golang Bot that allows you to interact with your Kubernetes cluster via Hipchat channel.
You can install it in your cluster using Helm and your Chat Application credentials:
git clone https://github.com/valentin2105/k8s-bot.git && cd k8s-bot/helm
# Edit values.yaml
pod: k8s-bot
image: valentinnc/k8s-bot:latest
serviceAccount: k8s-bot
provider: Hipchat
room: "3999999" # Change Room ID
token: "thenah7oCaishei7een2it7iu9jucie5uphoa1ohg2ain2iengooShoo8Ee7eeNa" # Change Token
helm install -n k8s-bot --namespace k8s-bot .
You should generate a Hipchat User's token (Account Settings -> API Access -> Generate token)
!k - get cs
!k kube-system get deploy
!k all get pod
!k [ns] [verb] [resource]
go get github.com/tbruyelle/hipchat-go/hipchat
cd $GOPATH/src
git clone https://github.com/valentin2105/k8s-bot.git
go build
./k8s-bot -h
k8s-bot requires kubectl and these environment variables:
KUBERNETES_SERVICE_HOST=10.32.0.1 # By default on Kubernetes
KUBERNETES_SERVICE_PORT=443 # By default on Kubernetes
PROVIDER=Hipchat
TOKEN=<hipchat-user-token>
ROOM=<hipchat-room-id>
All of the above are included in the Helm chart and Dockerfile.
Hey dude! Help me out for a couple of :beers:!
Content type
Image
Digest
Size
22.5 MB
Last updated
about 8 years ago
docker pull valentinnc/k8s-bot