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
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