Skip to content

Commit

Permalink
HPA: Partially revert #465.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gacko committed Jun 5, 2023
1 parent 571dba0 commit cfd9a7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project's packages adheres to [Semantic Versioning](http://semver.org/s

- PDB: Improve checks. ([#487](https://github.com/giantswarm/ingress-nginx-app/pull/487))
- Image: Update to [`v1.8.0`](https://github.com/kubernetes/ingress-nginx/blob/main/changelog/Changelog-1.8.0.md). ([#489](https://github.com/giantswarm/ingress-nginx-app/pull/489))
- HPA: Partially revert [#465](https://github.com/giantswarm/ingress-nginx-app/pull/465). ([#493](https://github.com/giantswarm/ingress-nginx-app/pull/493))

## [3.0.0-alpha1] - 2023-05-09

Expand Down
8 changes: 4 additions & 4 deletions helm/ingress-nginx/templates/controller-hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ spec:
minReplicas: {{ .Values.controller.autoscaling.minReplicas }}
maxReplicas: {{ .Values.controller.autoscaling.maxReplicas }}
metrics:
{{- with .Values.controller.autoscaling.targetCPUUtilizationPercentage }}
{{- with .Values.controller.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: cpu
name: memory
target:
type: Utilization
averageUtilization: {{ . }}
{{- end }}
{{- with .Values.controller.autoscaling.targetMemoryUtilizationPercentage }}
{{- with .Values.controller.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: memory
name: cpu
target:
type: Utilization
averageUtilization: {{ . }}
Expand Down

0 comments on commit cfd9a7e

Please sign in to comment.