You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2021/06/04 23:17:04 UTC
[airflow] 01/01: feat: Helm chart adding minReplicaCount to the
Keda worker-kedaautoscaler.yaml
This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch pr/16262
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 1bf614ef2aee0e3b0e966d5cd819a2a8c2277f98
Author: andormarkus <an...@marc-o-polo.com>
AuthorDate: Fri Jun 4 06:01:22 2021 +0200
feat: Helm chart adding minReplicaCount to the Keda worker-kedaautoscaler.yaml
---
chart/templates/workers/worker-kedaautoscaler.yaml | 1 +
chart/values.schema.json | 5 +++++
chart/values.yaml | 3 +++
3 files changed, 9 insertions(+)
diff --git a/chart/templates/workers/worker-kedaautoscaler.yaml b/chart/templates/workers/worker-kedaautoscaler.yaml
index 0e8e524..9c27861 100644
--- a/chart/templates/workers/worker-kedaautoscaler.yaml
+++ b/chart/templates/workers/worker-kedaautoscaler.yaml
@@ -39,6 +39,7 @@ spec:
name: {{ .Release.Name }}-worker
pollingInterval: {{ .Values.workers.keda.pollingInterval }} # Optional. Default: 30 seconds
cooldownPeriod: {{ .Values.workers.keda.cooldownPeriod }} # Optional. Default: 300 seconds
+ minReplicaCount: {{ .Values.workers.keda.minReplicaCount }} # Optional. Default: 0
maxReplicaCount: {{ .Values.workers.keda.maxReplicaCount }} # Optional. Default: 100
triggers:
- type: postgresql
diff --git a/chart/values.schema.json b/chart/values.schema.json
index c276b3e..94d9113 100644
--- a/chart/values.schema.json
+++ b/chart/values.schema.json
@@ -929,6 +929,11 @@
"type": "integer",
"default": 30
},
+ "minReplicaCount": {
+ "description": "Minimum number of workers created by KEDA.",
+ "type": "integer",
+ "default": 0
+ },
"maxReplicaCount": {
"description": "Maximum number of workers created by KEDA.",
"type": "integer",
diff --git a/chart/values.yaml b/chart/values.yaml
index 6669b58..dd1ac52 100644
--- a/chart/values.yaml
+++ b/chart/values.yaml
@@ -364,6 +364,9 @@ workers:
# Note that HPA has a separate cooldown period for scale-downs
cooldownPeriod: 30
+ # Minimum number of workers created by keda
+ minReplicaCount: 0
+
# Maximum number of workers created by keda
maxReplicaCount: 10