From the course: Certified Kubernetes Administrator (CKA) Cert Prep (2024)

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Monitoring Kubernetes resources

Monitoring Kubernetes resources

- So what is needed to monitor Kubernetes resources? Well, generically, you can use kubectl get on any resource and it'll show you generic resource health. And kubectl describe is what you use to go any deeper. I'm not going to show you kubectl get because I've shown you in almost every single video in this course. And the interesting thing is if metrics are collected. So if metrics are collected by using the metrics server, you can use kubectl top pods and kubectl top nodes to get performance-related information about pods and nodes. That's much more interesting. Consider using advanced tools, like Prometheus and Grafana, for bigger implementations where you need more details about application usage. These advanced tools are not in CKA. But let's go check out kubectl top. So I'm typing kubectl top pods, and what is it giving me? Well, it's giving usage information about CPU utilization, as well as memory utilization. That…

Contents