Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 336 Bytes

18-MONITORING.md

File metadata and controls

15 lines (11 loc) · 336 Bytes

How to create kubectl alias (optional):

  • alias k=kubectl

Go to github and install metrics-server:

  • https://github.com/kubernetes-sigs/metrics-server

Get Nodes metrics:

  • k top nodes

Get Pods metrics:

  • k top pods -n default

Order results:

  • k top pods -n default --sort-by=cpu
  • k top pods -n default --sort-by=memory