From 6e375629e70d38475c7febe7c78720355152fa6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20C=C3=B4t=C3=A9?= Date: Tue, 16 May 2023 06:50:29 -0400 Subject: [PATCH] Configure router deployment replicas (#2782) --- charts/fission-all/templates/router/deployment.yaml | 2 +- charts/fission-all/values.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/fission-all/templates/router/deployment.yaml b/charts/fission-all/templates/router/deployment.yaml index 77b853d3..c86dc0ab 100644 --- a/charts/fission-all/templates/router/deployment.yaml +++ b/charts/fission-all/templates/router/deployment.yaml @@ -12,7 +12,7 @@ metadata: application: fission-router spec: {{- if not .Values.router.deployAsDaemonSet }} - replicas: 1 + replicas: {{ .Values.router.replicas | default 1 }} {{- end }} selector: matchLabels: diff --git a/charts/fission-all/values.yaml b/charts/fission-all/values.yaml index 7f8812f0..5bc326e3 100644 --- a/charts/fission-all/values.yaml +++ b/charts/fission-all/values.yaml @@ -211,6 +211,9 @@ router: ## deployAsDaemonSet decides whether to deploy router as a DaemonSet or a Deployment. ## deployAsDaemonSet: false + ## replicas decides how many router pods to deploy. Only used when deployAsDaemonSet is false. + ## + replicas: 1 ## svcAddressMaxRetries is the max times for router to retry with a specific function service address ## svcAddressMaxRetries: 5