-
Notifications
You must be signed in to change notification settings - Fork 39.9k
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
Unclear with Container garbage collection configuration #127157
Unclear with Container garbage collection configuration #127157
Comments
/remove-kind bug |
It looks like we don't populate those values in the kubelet configuration any more after #53088:
It's possible to set them using the CLI, though:
I think the whole container GC configuration is deprecated in favor of the eviction feature and I'm not sure we should do anything here. |
@saschagrunert,
Yes, i was going through these values before. There was no information these parameters are direct related with container GC configuration. Is these are for container GC configuration? |
TBH I think we probably should drop these CLI flags now. We just hadn't gotten around to it yet, but they're marked as DEPRECATED. We should also update the documentation to deter folks from using them /triage accepted |
/help |
@haircommander: GuidelinesPlease ensure that the issue body includes answers to the following questions:
For more details on the requirements of such an issue, please see here and ensure that they are met. If this request no longer meets these requirements, the label can be removed In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
/assign @esotsal |
Raised PR in website repo for docs fix. |
/assign |
What happened?
Iam trying to disable maxPerPodContainer feature in my cluster. To achieve this followed the docs Container garbage collection and gone through code related to garbage collection.
Configured Container garbage collection parameters in the kubelet config file and restarted the kubelet sucessfully.
After that if i check, values in kubelet configuration file are persist but those are actually not reflected in cluster.
What did you expect to happen?
Container garbage collection parameters which i added in config file should reflect in cluster.
minAge:
maxPerPodContainer:
maxContainers:
How can we reproduce it (as minimally and precisely as possible)?
Ex:
Restart kubelet service:
sudo systemctl restart kubelet
Make sure kubelet restarted sucessfully: sudo systemctl status kubelet
Run: kubectl proxy
Open another terminal and check whether added parameters are present in configuration or not:
curl http://localhost:8001/api/v1/nodes/<hostname/proxy/configz
Anything else we need to know?
I tried many ways to add these parameters but no use. even these are not listed in api-resources.
https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/
https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/
Is it possible to define these values in kubelet as mentioned in docs? if possible how can we configure them?
Kubernetes version
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: