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

Disabled autoscaling for airflow workers

parent 311c0ddf
......@@ -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:
......
......@@ -8,16 +8,11 @@ def addNamespace(namespace, manifest):
manifest['metadata']['namespace'] = namespace
if 'subjects' in manifest:
manifest['subjects'][0]['namespace'] = namespace
def removeReplicasFromWorkerStatefulSet(manifest):
if manifest['kind'] == 'StatefulSet' and manifest['metadata']['name'] == 'airflow-worker':
del manifest['spec']['replicas']
def addingNamespace(namespace):
for manifest in yaml.load_all(sys.stdin, Loader=yaml.FullLoader):
if manifest:
addNamespace(namespace, manifest)
removeReplicasFromWorkerStatefulSet(manifest)
print ('---')
print (yaml.dump(manifest, default_flow_style=False, sort_keys=False))
......
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