Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alantang888/k8s_slack_bot
Slack bot to perform simple K8S operation
https://github.com/alantang888/k8s_slack_bot
Last synced: about 1 month ago
JSON representation
Slack bot to perform simple K8S operation
- Host: GitHub
- URL: https://github.com/alantang888/k8s_slack_bot
- Owner: alantang888
- Created: 2019-09-23T10:06:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-16T17:04:01.000Z (over 2 years ago)
- Last Synced: 2023-08-29T15:16:19.903Z (over 1 year ago)
- Language: Python
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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 replicasThis 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