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
Can view the logs of pods and container like docker.
show
k logs webapp-1