How to change time-to-live of GKE cluster events (from default 1h0m0s)?

那年仲夏 提交于 2019-12-11 15:32:06

问题


I am running GKE k8s deployments/jobs that take a long time to execute - from days to weeks (Machine Learning). Default GKE Events expire after 1h, which is not enough to debug problems that can occur during training, like OOMKilling, etc.

kube-apiserver isn't exposed in GKE, so I'd like to find a way to access and change a property like event-ttl.

How can I change event-ttl for an already launched cluster, or how to specify event-ttl at a cluster creation? For example if I would like all my events in a cluster to be available for 24 hours. Is there a kubectl command for that (the kubernetes svc is accessible)?

Thanks in advance!


回答1:


It's currently not possible. As you said, the kube-apiserver flags are currently not user-configurable on GKE. There are plans to expose more such knobs to the users but I don’t know when would this be available.



来源:https://stackoverflow.com/questions/45904245/how-to-change-time-to-live-of-gke-cluster-events-from-default-1h0m0s

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