Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 2.17 KB

README.md

File metadata and controls

36 lines (29 loc) · 2.17 KB

K8S Slackbot

Build Status Coverage Status Go Report Card

A slack bot built to control kubernetes cluster.

Image

Docker Stars Docker Pulls Docker Automated build

This image is based on Alpine Linux image, which is only a 5MB image. Download size of this image is only:

Arguments

  • kubecfg-file (string): Location of kubecfg file for access to kubernetes master service; --kube-master-url overrides the URL part of this; if neither this nor --kube-master-url are provided, defaults to service account tokens
  • bot-token (string): Token of slack bot to use
  • debug (boolean): Whether enable debug log

Usage

$ docker pull danielqsj/k8s-slackbot
$ docker run -v ~/.kube/config:/etc/kubernetes/kubeconfig danielqsj/k8s-slackbot --kubecfg-file=/etc/kubernetes/kubeconfig --bot-token=$(bot-token)

Then you can talk to your slack bot via slack direct message. The command is same as kubectl . Such as kubectl get nodes .

Enjoy it.