diff --git a/charts/kavach/Chart.yaml b/charts/kavach/Chart.yaml index 48b47df..df3b636 100644 --- a/charts/kavach/Chart.yaml +++ b/charts/kavach/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.9.1 +version: 0.9.2 # 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/kavach/templates/server/hpa.yaml b/charts/kavach/templates/server/hpa.yaml index 9ccab3c..bbb4684 100644 --- a/charts/kavach/templates/server/hpa.yaml +++ b/charts/kavach/templates/server/hpa.yaml @@ -1,5 +1,5 @@ {{- if .Values.server.autoscaling.enabled }} -apiVersion: extensions/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/kavach/templates/web/hpa.yaml b/charts/kavach/templates/web/hpa.yaml index 9a5aad2..080b47d 100644 --- a/charts/kavach/templates/web/hpa.yaml +++ b/charts/kavach/templates/web/hpa.yaml @@ -1,5 +1,5 @@ {{- if .Values.web.autoscaling.enabled }} -apiVersion: extensions/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 }}