Skip to content

Commit

Permalink
Merge pull request #1344 from banzaicloud/fix-thanos-chart
Browse files Browse the repository at this point in the history
[K8s 1.25 support] Migrate HorizontalPodAutoScalar to scaling/v2 for Thanos chart
  • Loading branch information
shanchunyang0919 committed Jun 16, 2023
2 parents b7d1a16 + 4e870f6 commit 5c29670
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion thanos/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords:
sources:
- https://github.com/thanos-io/thanos
- https://github.com/banzaicloud/banzai-charts/tree/master/thanos
version: 0.4.8
version: 0.4.9
icon: https://raw.githubusercontent.com/thanos-io/thanos/master/docs/img/Thanos-logo_fullmedium.png
maintainers:
- name: Banzai Cloud
Expand Down
8 changes: 6 additions & 2 deletions thanos/templates/query-frontend-horizontalpodautoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ spec:
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ . }}
target:
type: Utilization
averageUtilization: {{ . }}
{{- end }}
{{- with .Values.queryFrontend.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ . }}
target:
type: Utilization
averageUtilization: {{ . }}
{{- end }}
{{- end }}
{{- end }}
8 changes: 6 additions & 2 deletions thanos/templates/query-horizontalpodautoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,17 @@ spec:
- type: Resource
resource:
name: memory
targetAverageUtilization: {{ . }}
target:
type: Utilization
averageUtilization: {{ . }}
{{- end }}
{{- with .Values.query.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
targetAverageUtilization: {{ . }}
target:
type: Utilization
averageUtilization: {{ . }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 5c29670

Please sign in to comment.