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

feat: lower pod gc threshold #176

Merged
merged 1 commit into from
Mar 19, 2025
Merged

feat: lower pod gc threshold #176

merged 1 commit into from
Mar 19, 2025

Conversation

dkeven
Copy link
Collaborator

@dkeven dkeven commented Mar 19, 2025

set the terminaged-pod-gc-threshold option of kube-controller-manager to 1 to trigger automatical garbage collection of terminated pods.

note that the smallest valid value for this option is 1, so in some cases a terminated pod will still be left not cleaned, the complete garbage collection of terminated pod is discussed in the Kubernetes repo but not merged: kubernetes/enhancements#2890, so maybe in the future we should add a garbage collection controller that cleans up all terminated pods if necessary.

@dkeven dkeven requested a review from eball March 19, 2025 11:23
@dkeven dkeven enabled auto-merge (squash) March 19, 2025 11:23
@github-actions github-actions bot added the feat label Mar 19, 2025
@dkeven dkeven merged commit 0f50f3d into main Mar 19, 2025
1 check passed
@dkeven dkeven deleted the feat/pod_gc branch March 19, 2025 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants