Two separate golang app (client-server) to monitor kubernetes pods inside their namespaces and communicate with each other when pod events occur
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
Install:
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>"