Ankit
01/23/2023, 8:30 AMredsquare
01/23/2023, 8:47 AMhttps://prefect-community.slack.com/files/U03LH98F8S2/F04J85P3HEZ/673963ce-798f-4df1-b099-d0b9496dc1b7.jpeg▾
Ankit
01/23/2023, 8:50 AMredsquare
01/23/2023, 8:55 AMAnkit
01/23/2023, 8:57 AMredsquare
01/23/2023, 9:01 AMAnkit
01/23/2023, 9:04 AMredsquare
01/23/2023, 9:07 AMAnkit
01/23/2023, 9:08 AMredsquare
01/23/2023, 9:13 AMAnkit
01/23/2023, 9:15 AMredsquare
01/23/2023, 9:32 AMAnkit
01/23/2023, 9:33 AMredsquare
01/23/2023, 9:36 AMAnkit
01/23/2023, 9:38 AMredsquare
01/23/2023, 9:56 AMAnkit
01/27/2023, 12:32 PMinfra_overrides = {
"customizations": [
{
"op": "add",
"path": "/spec/template/spec/resources",
"value": {
"limits": {
"memory": memory_limit,
"cpu": cpu_limit
},
"requests": {
"memory": memory_request,
"cpu": cpu_request
}
}
}
]
}
redsquare
01/27/2023, 12:32 PMAnkit
01/27/2023, 12:33 PMdeployment = Deployment.build_from_flow(
flow = eval(flow_name),
description = "Flow in the location - {}:{}".format(script_path, flow_name),
name = deployment_name,
infrastructure = KubernetesJob.load("kubejob-base"),
infra_overrides = {
"customizations": [
{
"op": "add",
"path": "/spec/template/spec/resources",
"value": {
"limits": {
"memory": memory_limit,
"cpu": cpu_limit
},
"requests": {
"memory": memory_request,
"cpu": cpu_request
}
}
}
]
},
work_queue_name = work_queue_name,
path = folder.replace('.','/'),
apply = True
)
redsquare
01/27/2023, 12:36 PMAnkit
01/27/2023, 1:48 PMvalue is not a valid dict (type=type_error.dict)
I am doing it like this which creates the deployment successfully but doesn't show the customizations applied on podredsquare
01/27/2023, 2:06 PMAnkit
01/27/2023, 2:06 PM