diff --git a/charts/formserver/Chart.yaml b/charts/formserver/Chart.yaml index 6caf1fc..48fc276 100644 --- a/charts/formserver/Chart.yaml +++ b/charts/formserver/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: 1.0.0 +version: 1.0.1 # 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/formserver/templates/hpa.yaml b/charts/formserver/templates/hpa.yaml index 3b405c2..72d6294 100644 --- a/charts/formserver/templates/hpa.yaml +++ b/charts/formserver/templates/hpa.yaml @@ -1,5 +1,5 @@ {{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2 +apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler metadata: name: {{ include "formserver.fullname" . }} @@ -17,16 +17,12 @@ spec: - type: Resource resource: name: cpu - target: - type: Utilization - averageValue: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} {{- end }} {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - type: Resource resource: name: memory - target: - type: Utilization - averageValue: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} {{- end }} {{- end }}