Giter Site home page Giter Site logo

k8s-bot's Introduction

k8s-bot

Go Report Card Build Status contributions welcome

k8s-bot is a small Golang Bot that allows you to interact with your Kubernetes cluster via Hipchat channel.

How install it ?

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)

How to use it ?

!k - get cs

!k kube-system get deploy

!k all get pod

!k [ns] [verb] [resource]

How to build ?

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.

Support on Beerpay

Hey dude! Help me out for a couple of ๐Ÿป!

Beerpay Beerpay

k8s-bot's People

Contributors

danielepolencic avatar valentin2105 avatar wallies avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

danielepolencic

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.