Rajvir Jhawar
09/06/2022, 1:20 PMdeployment build --override customizations = resource_object
Andreas Nigg
09/06/2022, 1:35 PMChristopher Boyd
09/06/2022, 1:44 PMRajvir Jhawar
09/06/2022, 1:57 PMprefect deployment build /app/script.py:main -n "script_deploy" -o /app/script.yaml -sb gcs/flow-store -ib kubernetes-job/generic --override image_pull_policy=Always --override restart_policy=OnFailure --override customizations=[{'op': 'add', 'path': '/spec/template/spec/resources', 'value': {'limits': {'memory': '512Gi','cpu': '250m', 'ephemeral-storage': '500Mi'}}}] -q "test" -v "1.0.2" --apply
Christopher Boyd
09/06/2022, 2:18 PM[{
"op": "add",
"path": "/spec/template/spec/resources",
"value": {
"limits": {
"memory": "512Gi",
"cpu": "250m",
"ephemeral-storage": "500Mi"
}
}
}]
Rajvir Jhawar
10/10/2022, 1:26 PMk8s = KubernetesJob(
customizations=resource_limits,
finished_job_ttl=TTL_VALUE,
image_pull_policy="IfNotPresent")
k8s.save(profile_name, overwrite=True)