Skip to content

Commit

Permalink
chore: add resource allocations to helm charts
Browse files Browse the repository at this point in the history
  • Loading branch information
tm-echo-arcelao committed Feb 17, 2025
1 parent 664d4cc commit 0fcb026
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 24 deletions.
3 changes: 2 additions & 1 deletion data_sharing/migrations/versions/c2ed12933e52_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"""

from typing import Sequence, Union
from collections.abc import Sequence
from typing import Union

import sqlalchemy as sa
from alembic import op
Expand Down
18 changes: 7 additions & 11 deletions infra/helm/data-sharing-delta/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,13 @@ ingress:
# hosts:
# - chart-example.local

resources: { }
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
resources:
requests:
cpu: 50m
memory: 1Gi
limits:
cpu: 1
memory: 5Gi

autoscaling:
enabled: false
Expand Down
18 changes: 7 additions & 11 deletions infra/helm/data-sharing-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,13 @@ ingress:
# hosts:
# - chart-example.local

resources: { }
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
resources:
requests:
cpu: 50m
memory: 150Mi
limits:
cpu: 1
memory: 1Gi

autoscaling:
enabled: false
Expand Down
2 changes: 1 addition & 1 deletion scripts/load_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def main(fixtures: list[str]):
if not fixture_file.exists():
raise FileNotFoundError(f"Fixture `{fixture}` could not be found.")

with open(fixture_file, "r") as f:
with open(fixture_file) as f:
data = yaml.safe_load(f)

try:
Expand Down

0 comments on commit 0fcb026

Please sign in to comment.