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: support HPA in helm chart #5127

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Dean-Coakley
Copy link
Contributor

What type of PR is this?

  • Adds support for HorizontalPodAutoscaler support to helm chart

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #4929

Release Notes: Yes

Signed-off-by: Dean Coakley <[email protected]>
@Dean-Coakley Dean-Coakley requested a review from a team as a code owner January 22, 2025 17:26
Signed-off-by: Dean Coakley <[email protected]>
Copy link

codecov bot commented Jan 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.86%. Comparing base (0c68ae7) to head (e958829).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5127      +/-   ##
==========================================
- Coverage   66.87%   66.86%   -0.02%     
==========================================
  Files         210      210              
  Lines       32977    32977              
==========================================
- Hits        22054    22050       -4     
- Misses       9588     9590       +2     
- Partials     1335     1337       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@arkodg
Copy link
Contributor

arkodg commented Jan 22, 2025

thanks @Dean-Coakley this looks good ! can you add a test in https://github.com/envoyproxy/gateway/tree/main/test/helm

{{ toYaml .Values.hpa.behavior | indent 4 }}
{{- end }}
metrics:
{{- if .Values.hpa.targetCPU }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prefer to keep this entirely in values (similar to behavior) and not force end users to rely only on CPU/Mem. For example, custom metrics could be relevant here, e.g. size of the XDS cache, number of connected envoy proxies, etc.

Copy link
Contributor Author

@Dean-Coakley Dean-Coakley Jan 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I will make this change.

Interesting, I was implementing this as an array initially: #4929 (comment)

But after looking around, I saw this different approach seemed more common so I thought I must be wrong:

But moving back to [] makes sense to me. And I have seen one example of doing similar:

If you get reports of usability issues you could follow a similar approach to traefik. Seems nice: https://github.com/traefik/traefik-helm-chart/blob/master/EXAMPLES.md#install-with-auto-scaling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an option to configure HPA for the Envoy Gateway deployment in Helm
3 participants