Skip to content

ultimateboy/kubectl-slackbot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubectl Slackbot

kubectl slackbot being used in the slack client

Kubectl Slackbot is a bot based on nlopes slack api. Kubectl Slackbot allows you to run kubectl commands in slack.

Install

To install on a running kubernetes cluster just create a slack API token and update the "SLACK_API_TOKEN" environment var in the kubectl-deployment.yaml file. Once completed, just run the following:

kubectl create -f kubectl-deployment.yaml

Once running, invite the bot into a slack room and run commands as you normally would via kubectl.

Coming soon

Currently this is alpha quality code which probably shouldn't be used for anything too serious. Future plans include the following

  • Moving the SLACK_API_TOKEN to a proper kubernetes secret in the example manifest
  • Only allow whitelisted users to run kubectl commands
  • More sane error handling (i.e. don't allow users to use -f flag for logs, and other stuff)
  • Better handling of large outputs. I.e. only print the last N lines, or post it as a snippet.

About

A slackbot to run kubectl commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 100.0%