From 639bb1725e1d160947c8dc91f75c0594cb51a4ba Mon Sep 17 00:00:00 2001 From: Pierre Besson Date: Wed, 2 Aug 2023 12:14:41 +0200 Subject: [PATCH] use autoscaling/v2 for HPA in node chart --- charts/node/Chart.yaml | 2 +- charts/node/README.md | 2 +- charts/node/ci/kind-values.yaml | 4 ++++ charts/node/templates/hpa.yaml | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/charts/node/Chart.yaml b/charts/node/Chart.yaml index 9169f3e5..78da359e 100644 --- a/charts/node/Chart.yaml +++ b/charts/node/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: node description: A Helm chart to deploy Substrate/Polkadot nodes type: application -version: 5.1.4 +version: 5.1.5 maintainers: - name: Parity url: https://github.com/paritytech/helm-charts diff --git a/charts/node/README.md b/charts/node/README.md index 7e07a4bf..8a8e61fe 100644 --- a/charts/node/README.md +++ b/charts/node/README.md @@ -18,7 +18,7 @@ This is intended behaviour. Make sure to run `git add -A` once again to stage ch # Substrate/Polkadot node helm chart -![Version: 5.1.4](https://img.shields.io/badge/Version-5.1.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) +![Version: 5.1.5](https://img.shields.io/badge/Version-5.1.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ## Maintainers diff --git a/charts/node/ci/kind-values.yaml b/charts/node/ci/kind-values.yaml index 28c0bdff..6cc24694 100644 --- a/charts/node/ci/kind-values.yaml +++ b/charts/node/ci/kind-values.yaml @@ -15,3 +15,7 @@ node: whenScaled: Delete image: tag: v0.9.43 +autoscaling: + enabled: true + targetCPU: 80 + targetMemory: 80 diff --git a/charts/node/templates/hpa.yaml b/charts/node/templates/hpa.yaml index e5e6829d..b4bba780 100644 --- a/charts/node/templates/hpa.yaml +++ b/charts/node/templates/hpa.yaml @@ -1,6 +1,6 @@ {{ $fullname := include "node.fullname" . }} {{- if .Values.autoscaling.enabled }} -apiVersion: autoscaling/v2beta2 +apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ $fullname }}