Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kubernetes events will disappear after one hour #52521

Closed
gyliu513 opened this issue Sep 15, 2017 · 5 comments

Comments

@gyliu513
Copy link
Member

commented Sep 15, 2017

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug

/kind feature

What happened:
If the deploy failed, then I can check pod events to see what is wrong. But the events will disappear after one hour, why do we have such design?

/sig apps

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version):
  • Cloud provider or hardware configuration**:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@xiangpengzhao

This comment has been minimized.

Copy link
Member

commented Sep 15, 2017

@gyliu513 you can configure the ttl of events as you wish by setting the flag --event-ttl duration Amount of time to retain events. (default 1h0m0s) of kube-apiserver.

@gyliu513

This comment has been minimized.

Copy link
Member Author

commented Sep 15, 2017

Thanks @xiangpengzhao do you know why default to 1hr, it is a bit short, I think that an ideal value should be 1day or even 1week so that the end user would have enough time to retrieve events as they want.

@xiangpengzhao

This comment has been minimized.

Copy link
Member

commented Sep 15, 2017

@gyliu513 I have no idea... :(

@andyxning

This comment has been minimized.

Copy link
Member

commented Sep 15, 2017

/unassign kind/bug

@gyliu513 @xiangpengzhao This is mainly for easing the burden on ETCD. Ref #4432 and #47532 .

@timothysc timothysc self-assigned this Sep 15, 2017

@timothysc

This comment has been minimized.

Copy link
Member

commented Sep 15, 2017

This is what eventer - https://github.com/kubernetes/heapster/tree/master/events

and eventrouter - https://github.com/heptio/eventrouter are for.

This issue goes back 2+ years and there are multiple ways to handle it... closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.