Hello, Like we used to pass memory_limit and memor...
# prefect-community
a
Hello, Like we used to pass memory_limit and memory_request in run_config in Prefect1, is there something similar we can do in Prefect2 while doing cli deployment using overrides or something? If so, can someone please help with sample?
j
yes you can.
customizations=[ { "op": "replace", "path": "/spec/template/spec/containers/0/resources", "value": { "limits": {"memory": "256Mi", "cpu": "200m"}, "requests": {"memory": "128Mi", "cpu": "100m"}, }, } ],
a
Hey @Jean-Michel Provencher thanks for your reply. This is for the python object based deployment, right? I was wondering if there is a way to do this from CLI
j
yes. In the cli, not sure. probably I guess
a
I tried python object based deployments but couldn't figure it out completely. I keep getting stuck at different places. Hence thought if there is a simpler way of doing this from CLI
Hi @Jeff Hale @Anna Geller any resources for this? Thanks.