Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

does k3s garbage collector collects events? #9743

Closed
migs35323 opened this issue Mar 15, 2024 · 1 comment
Closed

does k3s garbage collector collects events? #9743

migs35323 opened this issue Mar 15, 2024 · 1 comment

Comments

@migs35323
Copy link

Environmental Info:
K3s Version: 1.27
(originally 1.23 or 1.24)

Cluster Configuration:
3 masters(servers) + workers(agents),
(originally 1 master with sqlite as DB)

Describe the bug:

I have this cluster for a year and i noticed i still have events from 200+ days ago
i tried to google but i only get info about the containers/images garbage collection..

so i have several questions

  1. aren't events supposed to be garbage collected periodically by default?
  2. does k3s changes this behavior or makes some custom configuration from upstream kubernetes?
  3. choosing to garbage collect event older than is even an option i can change?
@brandond
Copy link
Member

brandond commented Mar 15, 2024

  1. they're not garbage collected, but they do have a TTL
  2. no
  3. https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/

    --event-ttl duration     Default: 1h0m0s
    Amount of time to retain events.

Note that events that continue to occur will be renewed by newer matching events.

@k3s-io k3s-io locked and limited conversation to collaborators Mar 25, 2024
@caroline-suse-rancher caroline-suse-rancher converted this issue into discussion #9782 Mar 25, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants