Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Deployment and Operations
infra-azure-provisioning
Commits
ed28b4c9
Commit
ed28b4c9
authored
Mar 30, 2021
by
Vineeth Guna [Microsoft]
Browse files
Disabled autoscaling for airflow workers
parent
311c0ddf
Changes
2
Hide whitespace changes
Inline
Side-by-side
charts/airflow/helm-config.yaml
View file @
ed28b4c9
...
...
@@ -118,7 +118,7 @@ airflow:
podLabels
:
aadpodidbinding
:
"
osdu-identity"
autoscaling
:
enabled
:
tru
e
enabled
:
fals
e
## minReplicas is picked from Values.workers.replicas and default value is 1
maxReplicas
:
3
metrics
:
...
...
charts/airflow/scripts/add-namespace.py
View file @
ed28b4c9
...
...
@@ -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
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment