Chapter IV Nine Analysis will take you to K8s event easily.
1 introduction
Event is a special resource of K8s. With it, you can view the cluster events stored in etcd. In general, we pay little attention to it, but once you know it, you can't help but fall in love with it, because it can help you locate the problem more easily. If you don't believe it, you can directly locate the screenshot below:
Event is the namespace level. So when you look at event, be careful to bring namespaces.
Kubectl get event
2 practice
Once, when I was using K8s event, I found this error:
Failed to update Node Allocatable Limits ["kubepods"]: failed to set supported cgroup subsystems for cgroup [kubepods]: failed to find subsystem mount for required subsystem: pids
The reason for the problem is that the current operating system kernel is too low to support pids. As follows:
Cat / proc/cgroups
It was not solved until the kernel was upgraded. For information about how to upgrade the operating system kernel, you can refer to my "easy completion of the linux kernel". As shown in the following figure, the kernel already supports pids.