From 26162ae008db22aacdd9eb8805fe2e54b9a4d362 Mon Sep 17 00:00:00 2001 From: Vitalii Savitskii Date: Tue, 1 Oct 2024 10:52:34 +0200 Subject: [PATCH] Add ability to control minimum number of replicas for Arcane.Ingestion --- .helm/templates/hpa-ingestion.yaml | 4 ++-- .helm/values.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.helm/templates/hpa-ingestion.yaml b/.helm/templates/hpa-ingestion.yaml index 946bb46..ab47afe 100644 --- a/.helm/templates/hpa-ingestion.yaml +++ b/.helm/templates/hpa-ingestion.yaml @@ -36,8 +36,8 @@ spec: averageUtilization: {{ .Values.hpa.cpuTarget }} type: Utilization type: Resource - minReplicas: 3 + minReplicas: {{ .Values.hpa.minReplicas }} scaleTargetRef: apiVersion: apps/v1 kind: Deployment - name: {{ template "app.name" . }}-ingestion \ No newline at end of file + name: {{ template "app.name" . }}-ingestion diff --git a/.helm/values.yaml b/.helm/values.yaml index 2ee539c..930451a 100644 --- a/.helm/values.yaml +++ b/.helm/values.yaml @@ -1,5 +1,4 @@ environment: "Development" -replicaCount: 1 nodes: taint: "kubernetes.sneaksanddata.com/servicenodetype" @@ -27,6 +26,7 @@ hpa: stabilizationWindow: 120 maxReplicas: 10 cpuTarget: 35 + minReplicas: 1 image: repository: arcane-ingestion