Commit c5379c7b authored by Vineeth Guna [Microsoft]'s avatar Vineeth Guna [Microsoft]
Browse files

Changed keda version to 2.2.0 and fixed keda config for workers

parent 4debbdef
......@@ -28,12 +28,19 @@ spec:
triggers:
- type: postgresql
metadata:
{{- if eq (.Values.pgbouncer.enabled | default false) true }}
host: {{ .Values.pgbouncer.airflowdb.host | quote }}
userName: {{ .Values.pgbouncer.airflowdb.user | quote }}
port: {{ .Values.pgbouncer.airflowdb.port | quote }}
dbName: {{ .Values.pgbouncer.airflowdb.name | quote }}
{{- else }}
host: {{ .Values.airflow.externalDatabase.host | quote }}
userName: {{ .Values.airflow.externalDatabase.user | quote }}
passwordFromEnv: DATABASE_PASSWORD
port: {{ .Values.airflow.externalDatabase.port | quote }}
dbName: {{ .Values.airflow.externalDatabase.database | quote }}
sslmode: "prefer"
{{- end}}
passwordFromEnv: DATABASE_PASSWORD
sslmode: "require"
targetQueryValue: "1"
query: "SELECT ceil(COUNT(*)::decimal / {{ .Values.airflow.airflow.config.AIRFLOW__CELERY__WORKER_CONCURRENCY }}) FROM task_instance WHERE state='running' OR state='queued'"
metricName: "active_tasks_count"
......
......@@ -20,7 +20,7 @@ locals {
helm_keda_name = "keda"
helm_keda_ns = "keda"
helm_keda_repo = "https://kedacore.github.io/charts"
helm_keda_version = "2.3.0"
helm_keda_version = "2.2.0"
}
resource "kubernetes_namespace" "keda" {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment