Skip to content

mmertdogann/kubernetes-podlogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

kubernetes-podlogger

Two separate golang app (client-server) to monitor kubernetes pods inside their namespaces and communicate with each other when pod events occur

Technologies

The project has been created using these technologies:

  • golang as programming language
  • Kubernetes as container-orchestration system
  • kubectl as command-line tool to interact kubernetes
  • client-go for talking to a kubernetes cluster
  • ws tiny websocket library for Golang

Setup & Installtion

Install:

  1. golang from here
  2. Docker from here then enable kubernetes
  3. kubectl from here
  4. helm from here

Running The App

Create namespaces for client and server:

  • ns1 for server -> kubectl create namespace ns1
  • ns2 for client -> kubectl create namespace ns2

Installation of the helm charts:

helm install podloggerserver ./podlogger-server/helm
helm install podloggerclient ./podlogger-client/helm

Check your pod's logs:

kubectl logs -f -n <namespace> -l "app=<app-name>"

Releases

No releases published

Packages

No packages published