Skip to content

ListnPlay/kubeslack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubeslack

A simple python script for basic kubnernetes pod status notifications.

Usage

See the charts dir for a simple k8s deployment yaml file and service-account permissions

Parameters (environment variables)

Parameter Description Example Value Default value
SLACK_TOKEN Bot token for slack app, see slack docs for details xobo-xxx-xxx-xxx None
SLACK_CHANNEL Slack channel name. The channel needs to exist and the bot needs to be added to the channel #k8s None
NAMESPACE The namespace to monitor ('default' if none specified) default default
LOG_LEVEL configure the logging level (logs all namespace events in INFO, regardless if sending to slack) WARNING INFO
TEST If exists reads permissions from .kube/config file (useful for local development). Else uses in-cluster permissions (taken from the service account) true None

About

slack notification for pod events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published