Hi everyone, Having some doubts about this: <http...
# ask-the-community
e
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?
k
Those two container will be running in two different pod, and use different image
e
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?
y
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
e
perfect.. thanks
f
@Yee, 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.
s
I'm not sure that's possible. A task or a workflow execution can only have a single service account. Would like @Yee to confirm.
k
we can’t for now. we have an issue for it. https://github.com/flyteorg/flyte/issues/3241
151 Views