diff --git a/charts/retool/templates/deployment_workflows.yaml b/charts/retool/templates/deployment_workflows.yaml index a1d5e75d..e26ff9b2 100644 --- a/charts/retool/templates/deployment_workflows.yaml +++ b/charts/retool/templates/deployment_workflows.yaml @@ -11,7 +11,7 @@ metadata: {{ toYaml .Values.deployment.annotations | indent 4 }} {{- end }} spec: - replicas: 1 + replicas: {{ default (index .Values.workflows "backend" "replicaCount") 1 }} selector: matchLabels: retoolService: {{ template "retool.fullname" . }}-workflow-backend diff --git a/charts/retool/templates/deployment_workflows_worker.yaml b/charts/retool/templates/deployment_workflows_worker.yaml index 211a2013..f5638360 100644 --- a/charts/retool/templates/deployment_workflows_worker.yaml +++ b/charts/retool/templates/deployment_workflows_worker.yaml @@ -11,7 +11,7 @@ metadata: {{ toYaml .Values.deployment.annotations | indent 4 }} {{- end }} spec: - replicas: {{ .Values.workflows.replicaCount }} + replicas: {{ default (default (index .Values.workflows "worker" "replicaCount") (index .Values.workflows "replicaCount")) 1 }} selector: matchLabels: retoolService: {{ template "retool.fullname" . }}-workflow-worker diff --git a/values.yaml b/values.yaml index 880b691c..70649175 100644 --- a/values.yaml +++ b/values.yaml @@ -307,7 +307,11 @@ workflows: # ADVANCED: The temporal cluster can be scaled separately in the subchart (charts/retool-temporal-services-helm/values.yaml) # If your needs require scaling temporal, reach out to us for guidance -- it is likely the bottleneck is DB or worker replicaCount - replicaCount: 1 + worker: + replicaCount: 1 + + backend: + replicaCount: 1 # Timeout for queries, in ms. This will set the timeout for workflows-related pods only # If this value is not set but config.dbConnectorTimeout is, we will set workflows pod timeouts