https://dagster.io/ logo
#deployment-kubernetes
Title
# deployment-kubernetes
c

Charlie Bini

04/22/2022, 6:07 PM
k8s n00b question: if I want to define the resource requirements only for pods created for a specific job, is this the correct way to go about it?
Copy code
@job(
    tags={
        "dagster-k8s/config": {
            "job_spec_config": {
                "template": {
                    "spec": {
                        "container":   {
                            "resources": {
                                "limits": {
                                    "cpu": "1000m",
                                    "ephemeral-storage": "1Gi",
                                    "memory": "2Gi"
                                },
                                "requests": {
                                    "cpu": "1000m",
                                    "ephemeral-storage": "1Gi",
                                    "memory": "2Gi"
                                },
                            },
                            "name": "dagster",
                        }
                    }
                }
            }
        }
    }
)
*edit: added the
resources
key
d

daniel

04/22/2022, 6:10 PM
c

Charlie Bini

04/22/2022, 6:15 PM
oh ok that simplifies things
and it should only affect the pod that's running the job
d

daniel

04/22/2022, 6:15 PM
That's right
👌 1
3 Views