From aeee37a2a18c1eb70b8e21c5bf2ceb32c06f18b9 Mon Sep 17 00:00:00 2001 From: richardjennings-occrp <137180728+richardjennings-occrp@users.noreply.github.com> Date: Wed, 20 Sep 2023 09:20:30 +0100 Subject: [PATCH] #2998 autoscaling/v2 apiVersion for HorizontalPodAutoscaler (#3327) --- helm/charts/aleph/templates/api.yaml | 2 +- helm/charts/aleph/templates/ingest-file.yaml | 2 +- helm/charts/aleph/values.yaml | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/helm/charts/aleph/templates/api.yaml b/helm/charts/aleph/templates/api.yaml index 2fff54a4d4..25e959b316 100644 --- a/helm/charts/aleph/templates/api.yaml +++ b/helm/charts/aleph/templates/api.yaml @@ -133,7 +133,7 @@ spec: - name: home-volume emptyDir: {} --- -apiVersion: autoscaling/v2beta1 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ .Values.global.namingPrefix }}-api diff --git a/helm/charts/aleph/templates/ingest-file.yaml b/helm/charts/aleph/templates/ingest-file.yaml index 8f0bbaeca9..edfdb704fd 100644 --- a/helm/charts/aleph/templates/ingest-file.yaml +++ b/helm/charts/aleph/templates/ingest-file.yaml @@ -90,7 +90,7 @@ spec: emptyDir: medium: Memory --- -apiVersion: autoscaling/v2beta1 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ .Values.global.namingPrefix }}-ingest-file diff --git a/helm/charts/aleph/values.yaml b/helm/charts/aleph/values.yaml index c0629c1c24..286d5db67c 100644 --- a/helm/charts/aleph/values.yaml +++ b/helm/charts/aleph/values.yaml @@ -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: @@ -140,7 +142,9 @@ ingestfile: - type: Resource resource: name: cpu - targetAverageUtilization: 100 + target: + averageUtilization: 100 + type: Utilization # Aleph UI - templates/ui.yaml ui: