-
Notifications
You must be signed in to change notification settings - Fork 203
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
Automatically roll karpenter deployment on logging or global settings configuration change #726
Comments
Thanks for the feature request! We recently moved away from dynamic reload of the configmap to statically loading it. #174 This seems like a good idea to do this type of thing in our helm deploy to make sure configmap changes are applied properly on an update. |
This change already exists for the |
Oh didn't realize the global settings had it. Guess the ask then is to add it to the logging config as well. I'll confirm next time I change a global setting that it rolls, but when I changed logging settings it had not rolled. |
Yeah, we expected that logging settings would be changed more frequently, so we decided to dynamically update those at runtime as opposed to restarting the deployment and causing unnecessary disruptions. Did you observe any issues when you updated the logging config with it updating dynamically? |
I didn't notice it change after updating, but had also read you guys had changed this behavior for settings in ~0.24/5 so I did not think it dynamically updated and forced a restart. I generally have disliked any dynamic config update processes I have used. It throws out the deployment rolling update features of Kubernetes and introduces many failure modes that are not obvious to users like:
|
I think the last two here are critical, particularly aws/karpenter-provider-aws#2. Do you find that you often get the logging config wrong when you make changes? |
I've run into problem 2 before in other apps that rely on dynamic config reloading + fallback to working config. Then when new pods that don't have the old config loaded run they just crash. |
We've deprecated the configmap from v1beta1 APIs as part of v0.32+. You can now use environment variables for settings, where the configmap support will be removed as part of v0.33.0+. More information about the environment variables here. |
Tell us about your request
Use Helm sha256 trick to automatically roll the karpenter controller pods when any of its config changes.
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
Currently you would need to manually restart Karpenter on certain configuration changes.
Are you currently working around this issue?
Manually.
Additional Context
https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments
Attachments
No response
Community Note
The text was updated successfully, but these errors were encountered: