Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

What is the shelf life of K8s events in GKE

How long are events stored in GKE?  The default ttl is 1hour in kubernetes but I see events beyond an 1 hour. Is this stored by default or charged as part of Logs

 

0 2 553
2 REPLIES 2

Hello @aritraghosh,

Welcome to Google Cloud Community!

Yes, the default ttl is 1 hour but it can also be changed for a given cluster. You should not rely on the timing of an event for the reason of reflecting a consistent underlying trigger or the continued existence of events. Events should be treated as informative, best-effort and supplemental data.

To get the current value, run:

kap cluster event_ttl get --env=prod --hash=<hash>

Without changing the default, I am able to see events from 30 days ago

Screenshot 2023-06-01 223636.png

Top Labels in this Space
Top Solution Authors