Skip to content

Commit f746222

Browse files
committed
Add maintainMinimumReplicas to chart for autoscaler
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
1 parent 44f6df4 commit f746222

15 files changed

+355
-318
lines changed

chart/openfaas/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
type: application
33
description: OpenFaaS - Serverless Functions Made Simple
44
name: openfaas
5-
version: 14.2.108
5+
version: 14.2.109
66
sources:
77
- https://github.com/openfaas/faas
88
- https://github.com/openfaas/faas-netes

chart/openfaas/templates/autoscaler-dep.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ spec:
6363
value: {{ .Values.autoscaler.defaultTarget | quote }}
6464
{{- end }}
6565

66+
{{- if .Values.autoscaler.maintainMinimumReplicas }}
67+
- name: maintain_min_replicas
68+
value: "true"
69+
{{- end }}
70+
6671
{{- if .Values.securityContext }}
6772
securityContext:
6873
{{- toYaml .Values.securityContext | nindent 10 }}

chart/openfaas/values.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ eventWorker:
154154

155155
# For OpenFaaS Pro and the Function CRD
156156
operator:
157-
image: ghcr.io/openfaasltd/faas-netes:0.5.70
157+
image: ghcr.io/openfaasltd/faas-netes:0.5.71
158158
create: false
159159
logs:
160160
debug: false
@@ -201,7 +201,7 @@ operator:
201201
successThreshold: 1
202202

203203
faasnetesPro:
204-
image: ghcr.io/openfaasltd/faas-netes:0.5.70
204+
image: ghcr.io/openfaasltd/faas-netes:0.5.71
205205
logs:
206206
debug: false
207207
format: "console"
@@ -211,7 +211,7 @@ faasnetesOem:
211211

212212
# For the Community Edition
213213
faasnetes:
214-
image: ghcr.io/openfaas/faas-netes:0.18.14
214+
image: ghcr.io/openfaas/faas-netes:0.18.15
215215
resources:
216216
requests:
217217
memory: "120Mi"
@@ -287,14 +287,22 @@ queueWorker:
287287
## Advanced auto-scaler for scaling functions on RPS, CPU and in-flight requests
288288
## Includes: scale to zero
289289
autoscaler:
290-
image: ghcr.io/openfaasltd/autoscaler:0.3.18
290+
image: ghcr.io/openfaasltd/autoscaler:0.3.19
291291

292292
# Default value for "com.openfaas.scale.target" when not set via label
293293
defaultTarget: 50
294294

295+
# Advanced feature, not recommended to use this.
296+
# When set to true, any function that has been scaled to zero without
297+
# a com.openfaas.scale.zero=true label will be immediately scaled back to its
298+
# minimum replica count.
299+
maintainMinimumReplicas: false
300+
295301
# replicas should only ever be set to 1, as a singleton.
296302
replicas: 1
303+
297304
enabled: true
305+
298306
resources:
299307
requests:
300308
memory: "128Mi"
@@ -377,7 +385,7 @@ iam:
377385
## if you wish to retain the metrics for a longer period, you should
378386
## scrape this instance from an external Prometheus server
379387
prometheus:
380-
image: prom/prometheus:v3.4.2
388+
image: prom/prometheus:v3.5.0
381389
create: true
382390
retention:
383391
time: 15d

docs/cron-connector-0.6.13.tgz

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)