diff --git a/shiny-server/Chart.yaml b/shiny-server/Chart.yaml index b5a3deb8d6b90772c50f21694987f2ab42c587c6..81d845a169ad11a4b773457009cdf2aa82246d8e 100644 --- a/shiny-server/Chart.yaml +++ b/shiny-server/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.6.1 +version: 0.6.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/shiny-server/templates/hpa.yaml b/shiny-server/templates/hpa.yaml index 548ee03b16e46f690c213aac0afc40e44e240936..a91f61bd5c7faa1ca3da0eb6883ff7bc0f912431 100644 --- a/shiny-server/templates/hpa.yaml +++ b/shiny-server/templates/hpa.yaml @@ -1,5 +1,5 @@ {{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2beta1 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ include "chart.fullname" . }} @@ -17,12 +17,16 @@ spec: - type: Resource resource: name: cpu - targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }} {{- end }} {{- if .Values.autoscaling.targetMemoryUtilizationPercentage }} - type: Resource resource: name: memory - targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} + target: + type: Utilization + averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }} {{- end }} {{- end }}