From d0335209276196cff6a700316a7f00214fe4553f Mon Sep 17 00:00:00 2001 From: piero <46724833+pbackz@users.noreply.github.com> Date: Wed, 3 Apr 2024 18:59:23 +0000 Subject: [PATCH] fix: Update HorizontalPodAutoscaler version and spec in chart (#666) Closes #667 --- charts/planka/Chart.yaml | 2 +- charts/planka/README.md | 5 +++-- charts/planka/templates/hpa.yaml | 10 +++++++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/charts/planka/Chart.yaml b/charts/planka/Chart.yaml index 8ecb6588..1d733e7b 100644 --- a/charts/planka/Chart.yaml +++ b/charts/planka/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.1.20 +version: 0.1.21 # 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/planka/README.md b/charts/planka/README.md index ed305b0c..f9250e1a 100644 --- a/charts/planka/README.md +++ b/charts/planka/README.md @@ -46,7 +46,7 @@ helm install planka . --set secretkey=$SECRETKEY \ --set admin_email="demo@demo.demo" \ --set admin_password="demo" \ --set admin_name="Demo Demo" \ ---set admin_username="demo" +--set admin_username="demo" \ --set ingress.enabled=true \ --set ingress.hosts[0].host=planka.example.dev \ @@ -55,7 +55,7 @@ helm install planka . --set secretkey=$SECRETKEY \ --set admin_email="demo@demo.demo" \ --set admin_password="demo" \ --set admin_name="Demo Demo" \ ---set admin_username="demo" +--set admin_username="demo" \ --set ingress.enabled=true \ --set ingress.hosts[0].host=planka.example.dev \ --set ingress.tls[0].secretName=planka-tls \ @@ -76,6 +76,7 @@ admin_name: "Demo Demo" admin_username: "demo" # Admin user +# Ingress ingress: enabled: true hosts: diff --git a/charts/planka/templates/hpa.yaml b/charts/planka/templates/hpa.yaml index 09e4c398..257a09d9 100644 --- a/charts/planka/templates/hpa.yaml +++ b/charts/planka/templates/hpa.yaml @@ -1,5 +1,5 @@ {{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2beta1 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ include "planka.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 }}