Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 734 Bytes

03_Logging_&_Monitoring.md

File metadata and controls

42 lines (28 loc) · 734 Bytes

Logging & Monitoring

Monitor Cluster Components

Download and monitor in-memory nodes and pods metrics via metrics server.

show

git clone https://github.com/kodekloudhub/kubernetes-metrics-server.git
ls
cd kubernetes-metrics-server
ls
k create -f .
k top node
kubectl top node --sort-by='cpu' --no-headers | head -1
kubectl top node --sort-by='memory' --no-headers | head -1
kubectl top pod --sort-by='memory' --no-headers | head -1
kubectl top pod --sort-by='cpu' --no-headers | tail -1


Managing Application Logs

Can view the logs of pods and container like docker.

show

k logs webapp-1