From d6dea7cd00babd24c98d2d09814955851a4bee61 Mon Sep 17 00:00:00 2001 From: Adish M Date: Fri, 16 Jun 2023 15:27:36 +0530 Subject: [PATCH] Fix for HPA file --- charts/tooljet/templates/hpa.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/tooljet/templates/hpa.yaml b/charts/tooljet/templates/hpa.yaml index e23528a..e8ae645 100644 --- a/charts/tooljet/templates/hpa.yaml +++ b/charts/tooljet/templates/hpa.yaml @@ -1,4 +1,5 @@ -apiVersion: autoscaling/v2beta1 +{{- if .Values.autoscaling.enabled }} +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: tooljet @@ -14,7 +15,10 @@ spec: resource: name: cpu targetAverageValue: {{ .Values.apps.tooljet.hpa.threshhold.cpu }} + targetType: AverageValue - type: Resource resource: name: memory targetAverageValue: {{ .Values.apps.tooljet.hpa.threshhold.ram }} + targetType: AverageValue +{{- end }} \ No newline at end of file