Why does my GKE cluster not show any events?

 ̄綄美尐妖づ 提交于 2020-08-09 08:13:59

问题


I have a GKE cluster and deployed some workloads on it. What I noticed is that whenever I do kubectl get events --all-namespaces, I don't see any results. kubectl describe deployment <name> doesn't show any events either. I'm pretty sure things do happen in my cluster because all my workloads are running fine and Stackdriver is able to report logs and HPA functions perfectly. But my events section is empty all over. Why is this? Is this something I've to enable manually in GKE?


回答1:


Kubernetes events are retained by default a period of 1 hour which is controlled by kube-apiserver. You would not have performed any activity in an hour.

check event-ttl here , code here

Also you can check this merge request for latest enhancements in kubectl events here



来源:https://stackoverflow.com/questions/63035494/why-does-my-gke-cluster-not-show-any-events

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!