kube-events-watcher

command module
v0.0.0-...-e8f3d3b Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

README

kube-events-watcher

This repository watch the event resource in the Kubernetes, which takes those events and push them to a specified sink.

Usage

./kube-events-watcher --kubeconfig kubeconfig.conf --sink=elasticsearch:http://elasticsearch:9200?maxRetries=5&index=events

Docker

docker run -it --rm pytimer/kube-events-watcher:1.0.0 -h

Usage of /kube-events-watcher:
      --kubeconfig string              absolute path to the kubeconfig file.
                                       Optional, if the kubeconfig empty, this controller is running in a kubernetes cluster.
      --log-flush-frequency duration   Maximum number of seconds between log flushes (default 5s)
      --resync-period duration         Watcher reflector resync period (default 1m0s)
      --sink *flags.Uri                Sink type to save the kubernetes events. e.g. --sink=elasticsearch:http://elasticsearch.com:9200
  -v, --v int                          log level for V logs
pflag: help requested

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
type EventHandler interface { OnAdd(event corev1.Event) OnUpdate(old, new corev1.Event) OnDelete(event corev1.Event) }
type EventHandler interface { OnAdd(event corev1.Event) OnUpdate(old, new corev1.Event) OnDelete(event corev1.Event) }

Jump to

Keyboard shortcuts

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