Git Product home page Git Product logo

k8s_slack_bot's Introduction

k8s_slack_bot

What is this app?

This is a slack app help to perform simple operations from Slack (users no need to have K8S access/permission to K8S)

Like:

  • Get/Delete pods
  • Get deployments ready count and image tag
  • Get HPA min/max replicas

This is for let some people don't know about K8S. But need to perform some simple action for K8S operations. No any permission check. (Will add check on call from which slack channel. Then only need to control who is on that slack channel for operations)

I thinking is it use Slack commands for this app. Now is only response to @mention

Config

Use environment variables for configuration:

  • SLACK_SIGNING_SECRET: Slack Signing Secret (On your slack app basic information page)
  • SLACK_OAUTH_ACCESS_TOKEN: Slack OAuth Access Token (On your slack app install app page)
  • SLACK_ALLOWED_CHANNEL: Which Slack channel allowed send command to this app
  • K8S_TARGET_NAMESPACE: Which K8S namespace for operations

Required Slack Scopes

  • groups:read
  • chat:write:bot
  • bot
  • users:read

k8s_slack_bot's People

Contributors

alantang888 avatar

Watchers

 avatar

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.