-
Notifications
You must be signed in to change notification settings - Fork 466
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] adding vpa support #308
Conversation
0c4a0c7
to
fc729a6
Compare
@nicolastakashi this PR would introduce a breaking change so might be tricky to get through as is. Out of interest what is your use case for using the VPA for a Deployment over the HPA? There are currently discussions about introducing focused charts specifically for collection (DaemonSet) and aggregation (StatefulSet/Deployment) with strong SemVer guarantees. The changes you've suggested here are similar to what I was thinking of for the aggregator although I was also going to support using the addon-resizer when in StatefulSet mode in addition to the VPA (not the HPA with the current volume behaviour). |
Hi, @stevehipwell when I changed it I thought that could be tricky because of the breaking change, but we can try a different approach to avoid this breaking change. Regarding the use case for VPA for Deployments in my view, there are two:
|
@nicolastakashi if you're using a deployment (so no persistence) then I'm not convinced about the use cases other than to recommend on the resource settings. The other scenarios are better suited to the HPA especially as restarting the Fluent Bit pod could cause data loss so probably shouldn't be used in a feedback loop situation. If Fluent Bit is a stateful set with persistence then I can see more value from the VPA as it couldn't use the HPA and would need scaling vertically. If you really want to land this and you make the changes non-breaking we could add it. |
@stevehipwell I'll change the implementation to avoid the breaking change 😄 |
195246a
to
2dd6e23
Compare
@stevehipwell can you take a second look pls? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicolastakashi I've reviewed the changes and added some suggestions.
afe6ccf
to
deb4dfb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicolastakashi could you bump the version in Chart.yaml and update the annotations to cover your change?
@stevehipwell can you check if I did it properly? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of minor suggestions.
@nicolastakashi it looks like you've lost your code from the commit? |
Hey @stevehipwell yeah I made a mistake but I was able to recovery hehe. |
@nicolastakashi have you tested the functionality you've added locally? |
Signed-off-by: Nicolas Takashi <nicolas.takashi@coralogix.com>
@stevehipwell yup, just to evidence. |
@nicolastakashi assuming the CI passes are you happy for this to be released? |
@stevehipwell yeah, let's party 🥳 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Nicolas Takashi <nicolas.takashi@coralogix.com> Signed-off-by: Nicolas Takashi <nicolas.takashi@coralogix.com>
Adding vpa support as requested: #307