From 11be448e917e628f8c0ae7759fe4a6e803a09429 Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Mon, 26 Sep 2022 13:11:11 +0200 Subject: [PATCH] Added autoscaling values to values.yaml (#52) * Added autoscaling values to values.yaml --- .github/kubeval.sh | 4 ++-- .github/workflows/ci.yaml | 6 +++--- charts/unleash/Chart.yaml | 4 ++-- charts/unleash/values.yaml | 11 +++++++++-- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/.github/kubeval.sh b/.github/kubeval.sh index d12a5e2..0de9152 100755 --- a/.github/kubeval.sh +++ b/.github/kubeval.sh @@ -7,8 +7,8 @@ set -o errexit set -o pipefail CHART_DIRS="$(git diff --find-renames --name-only "$(git rev-parse --abbrev-ref HEAD)" remotes/origin/main -- charts | grep '[cC]hart.yaml' | sed -e 's#/[Cc]hart.yaml##g')" -HELM_VERSION="v3.8.1" -KUBEVAL_VERSION="0.16.1" +HELM_VERSION="v3.10.0" +KUBEVAL_VERSION="v0.16.1" SCHEMA_LOCATION="https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/" # install helm diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4774996..b1b53ae 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -85,9 +85,9 @@ jobs: strategy: matrix: k8s: - - v1.22.11 - - v1.23.8 - - v1.24.2 + - v1.22.15 + - v1.23.12 + - v1.24.6 steps: - name: Checkout uses: actions/checkout@v3 diff --git a/charts/unleash/Chart.yaml b/charts/unleash/Chart.yaml index 6c04087..daae4d3 100644 --- a/charts/unleash/Chart.yaml +++ b/charts/unleash/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v2 -appVersion: "4.12.6" +appVersion: "4.15.1" dependencies: - name: postgresql repository: https://charts.bitnami.com/bitnami @@ -16,4 +16,4 @@ sources: - https://github.com/Unleash/unleash-docker - https://github.com/Unleash/helm-charts type: application -version: 2.7.0 +version: 2.7.2 diff --git a/charts/unleash/values.yaml b/charts/unleash/values.yaml index 516e5e8..e3654c7 100644 --- a/charts/unleash/values.yaml +++ b/charts/unleash/values.yaml @@ -17,8 +17,6 @@ affinity: {} # HorizontalPodAutoscaler # https://kubernetes.io/de/docs/tasks/run-application/horizontal-pod-autoscale/ -autoscaling: - enabled: false # Unleash v4 comes with basic username/password and API tokens. # @@ -237,3 +235,12 @@ postgresql: postgresqlPassword: unleash securityContext: {} +# Autoscaling +# https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ +# Allows Unleash to setup HPA +autoscaling: + enabled: false + minReplicas: 0 + maxReplicas: 0 + targetCPUUtilizationPercentage: 0 + targetMemoryUtilizationPercentage: 0