Nathan
11/02/2023, 6:27 PM2.12.1
on kubernetes and deploy my flows using the Deployment.build_from_flow()
method. Basically, I'd like to provision more or less mem/cpu based on what I know about each flow deployment.
Thanks in advance for any help!Nate
11/02/2023, 7:20 PMthe worker model? if you're deploying your flows to work pools for workers to pick up, you won't want to use the
build_from_flow
method (an older deployment UX specifically for deployments executed by agents via infra blocks that will eventually be deprecated)
as far as kubernetes, Flow.deploy
should cover the same (declarative python deployment definition) use case for you (which is the recommended approach for worker-based deployments)Nate
11/02/2023, 7:21 PMNathan
11/02/2023, 7:32 PMFlow.deploy
method instead. Is there a mechanism to modify the k8s job templates though on a per-deployment basis? I've had a hard time finding that in the docs.Nate
11/02/2023, 7:33 PMNathan
11/02/2023, 7:33 PMNate
11/02/2023, 7:34 PMNathan
11/02/2023, 8:01 PMFlow.deploy
without it building a Docker image? I'd rather it just pull an image that's already built on runtime.Nate
11/02/2023, 8:02 PMNate
11/02/2023, 8:02 PMNathan
11/02/2023, 8:04 PM