From 5601097b12411c3adbc7cd5c76670e5edbafa5e8 Mon Sep 17 00:00:00 2001 From: Philipp Wiesner Date: Mon, 9 Oct 2023 13:45:36 +0200 Subject: [PATCH] [sophora-image-update] make replica count configurable --- charts/sophora-image-update-service/templates/deployment.yaml | 2 +- charts/sophora-image-update-service/values.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/sophora-image-update-service/templates/deployment.yaml b/charts/sophora-image-update-service/templates/deployment.yaml index 1a5ccf8..6140045 100644 --- a/charts/sophora-image-update-service/templates/deployment.yaml +++ b/charts/sophora-image-update-service/templates/deployment.yaml @@ -5,7 +5,7 @@ metadata: labels: {{- include "update-service.labels" . | nindent 4 }} spec: - replicas: 1 + replicas: {{ .Values.replicaCount }} selector: matchLabels: {{- include "update-service.selectorLabels" . | nindent 6 }} diff --git a/charts/sophora-image-update-service/values.yaml b/charts/sophora-image-update-service/values.yaml index 72fb296..21a454b 100644 --- a/charts/sophora-image-update-service/values.yaml +++ b/charts/sophora-image-update-service/values.yaml @@ -54,6 +54,7 @@ serviceMonitor: interval: 10s path: /actuator/prometheus +replicaCount: 1 resources: requests: memory: "2G"