k8sslackevent

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

README

K8S Event Watcher

CircleCI Go Report Card

An event watcher for Kubernetes Environment, and publish on slack

Func

  • Pod Event Watcher on default and kube-system namespace
  • Node Event Watcher
  • Event Watcher
  • Publisher on slack
  • Watch OOMKilled Event and retrieve pod name
  • External or Internal k8s api
Build
Usage

Right now pod watcher is available on default and kube-system namespaces

Create Webhook slack application and export URL

export SLACK_URL=https://hooks.slack.com/xxx

For internal k8s:

k8sslackevent serve --api internal

For External k8s, its based on current context in your .kube/config file:

k8sslackevent serve --api external
Env
  • SLACK_URL = Slack URL Hook
TIPS

If you receive cannot execute binary file: Exec format error

Compile with CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build main.go

And build docker build -t jsenon/k8sslackevent:vx.x .

TODO
  • Specify Pod watcher namespace as flag
  • Add Event bus integration

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL