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
ef4241c3
Commit
ef4241c3
authored
Mar 31, 2021
by
Vineeth Guna [Microsoft]
Browse files
Disabled autoscaling
parent
a116f6f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
charts/airflow/helm-config.yaml
View file @
ef4241c3
...
...
@@ -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
:
...
...
@@ -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"
...
...
charts/airflow/scripts/add-namespace.py
View file @
ef4241c3
...
...
@@ -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
):
...
...
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