diff --git a/charts/fission-all/templates/router/deployment.yaml b/charts/fission-all/templates/router/deployment.yaml index 77b853d3ef..c86dc0aba6 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 7f8812f0c4..5bc326e39e 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