Skip to content

Commit 2b1d529

Browse files
committed
Add override for default target for autoscaler
The target as per the docs, when no label is set was 50. This is still the case, however, it can be customised via autoscaler.defaultTarget for people who are upgrading an old cluster, or who deploy functions via REST and cannot yet update their tooling Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 96fbd44 commit 2b1d529

15 files changed

+330
-298
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.98
5+
version: 14.2.99
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
@@ -58,6 +58,11 @@ spec:
5858
value: "true"
5959
{{- end }}
6060

61+
{{- if .Values.autoscaler.defaultTarget }}
62+
- name: default_target
63+
value: {{ .Values.autoscaler.defaultTarget | quote }}
64+
{{- end }}
65+
6166
{{- if .Values.securityContext }}
6267
securityContext:
6368
{{- toYaml .Values.securityContext | nindent 10 }}

chart/openfaas/values.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,10 @@ 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.16
290+
image: ghcr.io/openfaasltd/autoscaler:0.3.17
291+
292+
# Default value for "com.openfaas.scale.target" when not set via label
293+
defaultTarget: 50
291294

292295
# replicas should only ever be set to 1, as a singleton.
293296
replicas: 1
@@ -418,7 +421,7 @@ nats:
418421

419422
## alertmanager is only used for OpenFaaS CE
420423
alertmanager:
421-
image: prom/alertmanager:v0.28.0
424+
image: prom/alertmanager:v0.28.1
422425
create: true
423426
resources:
424427
requests:

docs/cron-connector-0.6.12.tgz

-1 Bytes
Binary file not shown.

docs/index.yaml

Lines changed: 319 additions & 295 deletions
Large diffs are not rendered by default.

docs/kafka-connector-0.7.12.tgz

0 Bytes
Binary file not shown.

docs/mqtt-connector-0.4.7.tgz

1 Byte
Binary file not shown.

docs/nats-connector-0.3.2.tgz

3 Bytes
Binary file not shown.

docs/openfaas-14.2.99.tgz

62.4 KB
Binary file not shown.

docs/postgres-connector-0.1.2.tgz

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)