From 5a131850f979579d29e879d5bc34799602e515de Mon Sep 17 00:00:00 2001 From: ganga2166 Date: Wed, 16 Oct 2024 17:49:45 +0530 Subject: [PATCH] MANDE: updated HPA and chart version --- charts/mande/Chart.yaml | 2 +- charts/mande/templates/server/hpa.yaml | 10 +++++++--- charts/mande/templates/studio/hpa.yaml | 10 +++++++--- charts/mande/templates/web/hpa.yaml | 10 +++++++--- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/charts/mande/Chart.yaml b/charts/mande/Chart.yaml index 24b3da4..3d633b4 100644 --- a/charts/mande/Chart.yaml +++ b/charts/mande/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.5.2 +version: 0.5.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/mande/templates/server/hpa.yaml b/charts/mande/templates/server/hpa.yaml index 4e75252..1c85207 100644 --- a/charts/mande/templates/server/hpa.yaml +++ b/charts/mande/templates/server/hpa.yaml @@ -1,5 +1,5 @@ {{- if .Values.server.autoscaling.enabled }} -apiVersion: autoscaling/v2beta1 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ template "server.fullname" . }} @@ -18,13 +18,17 @@ spec: - type: Resource resource: name: memory - targetAverageUtilization: {{ .Values.server.autoscaling.targetMemoryUtilizationPercentage }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} {{- end }} {{- if .Values.server.autoscaling.targetCPUUtilizationPercentage }} - type: Resource resource: name: cpu - targetAverageUtilization: {{ .Values.server.autoscaling.targetCPUUtilizationPercentage }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} {{- end }} {{- end }} diff --git a/charts/mande/templates/studio/hpa.yaml b/charts/mande/templates/studio/hpa.yaml index 36d57f5..8314017 100644 --- a/charts/mande/templates/studio/hpa.yaml +++ b/charts/mande/templates/studio/hpa.yaml @@ -1,5 +1,5 @@ {{- if .Values.studio.autoscaling.enabled }} -apiVersion: autoscaling/v2beta1 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ template "studio.fullname" . }} @@ -18,13 +18,17 @@ spec: - type: Resource resource: name: memory - targetAverageUtilization: {{ .Values.studio.autoscaling.targetMemoryUtilizationPercentage }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} {{- end }} {{- if .Values.studio.autoscaling.targetCPUUtilizationPercentage }} - type: Resource resource: name: cpu - targetAverageUtilization: {{ .Values.studio.autoscaling.targetCPUUtilizationPercentage }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} {{- end }} {{- end }} diff --git a/charts/mande/templates/web/hpa.yaml b/charts/mande/templates/web/hpa.yaml index e0a5f44..949b729 100644 --- a/charts/mande/templates/web/hpa.yaml +++ b/charts/mande/templates/web/hpa.yaml @@ -1,5 +1,5 @@ {{- if .Values.web.autoscaling.enabled }} -apiVersion: autoscaling/v2beta1 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ template "web.fullname" . }} @@ -18,13 +18,17 @@ spec: - type: Resource resource: name: memory - targetAverageUtilization: {{ .Values.web.autoscaling.targetMemoryUtilizationPercentage }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} {{- end }} {{- if .Values.web.autoscaling.targetCPUUtilizationPercentage }} - type: Resource resource: name: cpu - targetAverageUtilization: {{ .Values.web.autoscaling.targetCPUUtilizationPercentage }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} {{- end }} {{- end }}