Skip to content

Derived from the Norse God who keeps watch, this is an implementation of event controller that looks out for any event that occurs on the k8 cluster

Notifications You must be signed in to change notification settings

dhruvbehl/k8s-heimdall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K8s-heimdall

Description

Derived from the Norse God Heimdall who keeps watch, this is an implementation of event controller that looks out for any event that occurs on the k8 cluster. This is created in an effort to understand and implement the following:

  1. Kubernetes client-go package
  2. Controller pattern in Kubernetes by use of shared informers and watch

Heimdall watches over the cluster using the kubernetes controller pattern and updates the user in case of any new events on the kubernetes cluster

Prerequisites

  1. Access to a Kubernetes cluster
  2. Currently the code assumes that the kubeconfig file will be found in ~/.kube/config
  3. The user should have full access pan cluster for Event resource

How to run

Upon execution the kubernetes events are printed to stdout and the corresponding parsed event fields are logged subsequently

  $ go run cmd/main.go

NOTE optionally user can also provide -kubeconfig to override default kubeconfig settings


Sample Output

Server Logs

Screen Shot 2022-02-18 at 11 15 33 AM

On Browser (API /events)

Screen Shot 2022-02-18 at 11 15 16 AM

About

Derived from the Norse God who keeps watch, this is an implementation of event controller that looks out for any event that occurs on the k8 cluster

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages