Skip to content

Commit c4008da

Browse files
committed
Enable legacy scaling for openfaas Pro users
If desired, openfaasPro=true + ceScaling=true followed by proScaler.enabled=false will give the alert-manager style of auto-scaling to Pro users. For the new scaler, simply set openfaasPro to true and proScaler.enabled=true. Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 3efc046 commit c4008da

13 files changed

+267
-238
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: 10.0.2
5+
version: 10.0.3
66
sources:
77
- https://github.com/openfaas/faas
88
- https://github.com/openfaas/faas-netes

chart/openfaas/templates/prometheus-cfg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ data:
128128
rules:
129129
- alert: service_down
130130
expr: up == 0
131-
{{- if eq .Values.openfaasPro false }}
131+
{{- if or (eq .Values.openfaasPro false) (eq .Values.ceScaling true) }}
132132
- alert: APIHighInvocationRate
133133
expr: sum(rate(gateway_function_invocation_total{code="200"}[10s])) BY (function_name) > 5
134134
for: 5s

chart/openfaas/values.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ clusterRole: false # Set to true for multiple namespaces
1212
createCRDs: true
1313
basic_auth: true
1414
generateBasicAuth: false
15-
1615
securityContext: true
1716

17+
# Set to true to use legacy / community-edition auto-scaling
18+
# when openfaasPro is set to true to use the original
19+
# auto-scaling logic
20+
# Then set proScaler.enabled=false
21+
ceScaling: false
22+
1823
# create pod security policies for OpenFaaS control plane
1924
# https://kubernetes.io/docs/concepts/policy/pod-security-policy/
2025
psp: false

docs/cron-connector-0.5.3.tgz

0 Bytes
Binary file not shown.

docs/index.yaml

Lines changed: 257 additions & 233 deletions
Large diffs are not rendered by default.

docs/kafka-connector-0.6.8.tgz

0 Bytes
Binary file not shown.

docs/mqtt-connector-0.4.5.tgz

-1 Bytes
Binary file not shown.

docs/nats-connector-0.1.1.tgz

-1 Bytes
Binary file not shown.

docs/openfaas-10.0.3.tgz

26.7 KB
Binary file not shown.

docs/probuilder-0.1.0.tgz

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)