Hi everyone, Having some doubts about this: <http...
# flyte-support
r
Hi everyone, Having some doubts about this: https://docs.flyte.org/projects/cookbook/en/latest/auto/core/containerization/multi_images.html Basically, there are 2 containers (for trainer and predictor). How the workflow should run to run the task images?
g
Those two container will be running in two different pod, and use different image
r
So, in this command pyflyte run --image <registry/repo:version> --remote example.py wf. I should pass --image 1 --image 2 --image n if I’m using multiple images?
t
almost yeah, you need to give them names
Copy code
--image a.com/b:123 --image trainer=a.com/c:123
if there’s no name then it becomes the default
if there’s more than one default it will error
r
perfect.. thanks
s
@thankful-minister-83577, I have two images, one for spark task, therefore extra param --service-account spark will be supplied; The other image is with custom packages, therefore it cannot work with --service-account spark. How do I submit the workflow using pyflyte run --remote ? The conflict is --service-account spark is needed for spark tasks but not other tasks.
t
I'm not sure that's possible. A task or a workflow execution can only have a single service account. Would like @thankful-minister-83577 to confirm.
g
we can’t for now. we have an issue for it. https://github.com/flyteorg/flyte/issues/3241
👍 2
152 Views