Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set default resources for all dagster repos #324

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/mpyl/steps/deploy/k8s/resources/dagster.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ def to_user_code_values(
"includeConfigInLaunchedRuns": {"enabled": True},
"name": f"{project.name}{name_suffix}",
"port": 3030,
"resources": {
"requests": {"memory": "256Mi", "cpu": "50m"},
"limits": {"memory": "512Mi", "cpu": "1000m"},
},
},
],
}
Expand Down
4 changes: 2 additions & 2 deletions src/mpyl/utilities/helm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Helper methods for helm deployments
"""

from mpyl.project import Target
from mpyl.steps.models import RunProperties
from ...project import Target
from ...steps.models import RunProperties


def convert_to_helm_release_name(name: str, tag: str) -> str:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ deployments:
enabled: true
name: example-dagster-user-code-pr-1234
port: 3030
resources:
requests:
memory: 256Mi
cpu: 50m
limits:
memory: 512Mi
cpu: 1000m
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ deployments:
enabled: true
name: example-dagster-user-code
port: 3030
resources:
requests:
memory: 256Mi
cpu: 50m
limits:
memory: 512Mi
cpu: 1000m
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ deployments:
enabled: true
name: example-dagster-user-code-pr-1234
port: 3030
resources:
requests:
memory: 256Mi
cpu: 50m
limits:
memory: 512Mi
cpu: 1000m