Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.2 KB

README.md

File metadata and controls

41 lines (28 loc) · 1.2 KB

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>"