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

Disabled autoscaling

parent a116f6f9
......@@ -118,7 +118,7 @@ airflow:
podLabels:
aadpodidbinding: "osdu-identity"
autoscaling:
enabled: true
enabled: false
## minReplicas is picked from Values.workers.replicas and default value is 1
maxReplicas: 3
metrics:
......@@ -128,6 +128,9 @@ airflow:
target:
type: Utilization
averageUtilization: 60
labels:
# DO NOT DELETE THIS LABEL. SET IT TO FALSE WHEN AUTOSCALING IS DISABLED, SET IT TO TRUE WHEN AUTOSCALING IS ENABLED
autoscalingEnabled: false
resources:
requests:
memory: "512Mi"
......
......@@ -10,7 +10,8 @@ def addNamespace(namespace, manifest):
manifest['subjects'][0]['namespace'] = namespace
def removeReplicasFromWorkerStatefulSet(manifest):
if manifest['kind'] == 'StatefulSet' and manifest['metadata']['name'] == 'airflow-worker':
del manifest['spec']['replicas']
if manifest['metadata']['labels']['autoscalingEnabled']:
del manifest['spec']['replicas']
def addingNamespace(namespace):
......
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