From the course: Certified Kubernetes Application Developer (CKAD) Cert Prep

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Monitoring cluster event logs

Monitoring cluster event logs

- Another useful source of information in case of trouble is a cluster event log. You can use kubectl get events for an overview of cluster-wide events. Kubectl get events -o wide provides an overview of cluster events with even more details. Use kubectl get events if it's unclear to which resource an error condition is related. Because if you don't know which resource is involved, well, you need an overview, and if you do know which resource is involved, better use kubectl describe. Let's have a quick look at kubectl get events. Kubectl get events, here we go. It's showing everything that has happened in the cluster recently, and -o wide is showing even more information about the things that recently have happened in the cluster. It's a little bit of overwhelming and that's what I don't like about kubectl get events. I mean, how many lines is this? Let's pipe it to Linux, WC - L. It's 59 events. I think that's a little bit much, but if you can't find what is going on anymore, it…

Contents