Skip to content

Commit

Permalink
#2998 autoscaling/v2 apiVersion for HorizontalPodAutoscaler (#3327)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardjennings-occrp authored and stchris committed Oct 31, 2023
1 parent a95f61b commit aeee37a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion helm/charts/aleph/templates/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ spec:
- name: home-volume
emptyDir: {}
---
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ .Values.global.namingPrefix }}-api
Expand Down
2 changes: 1 addition & 1 deletion helm/charts/aleph/templates/ingest-file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ spec:
emptyDir:
medium: Memory
---
apiVersion: autoscaling/v2beta1
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ .Values.global.namingPrefix }}-ingest-file
Expand Down
8 changes: 6 additions & 2 deletions helm/charts/aleph/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ api:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 60
target:
type: Utilization
averageUtilization: 60

# Aleph Upgrade Job - templates/aleph-upgrade-job.yaml
upgrade:
Expand Down Expand Up @@ -140,7 +142,9 @@ ingestfile:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 100
target:
averageUtilization: 100
type: Utilization

# Aleph UI - templates/ui.yaml
ui:
Expand Down

0 comments on commit aeee37a

Please sign in to comment.