All this while I was using lightweight python function as a component in kubeflow pipeline but recently I switched to use docker container as a component in kubeflow pipeline which goes something like this...
produce: str = 'hello'
):
return dsl.ContainerOp(
name = 'Say hi',
image = 'docker.io/playground/comp1:latest',
command = ['python', 'msg.py'],
arguments=[
'--msg', send_msg
],
file_outputs={
'output': '/output.txt',
}
)
Do i need to to some changes in the above code? do i need to autoscale docker container? if so how will the dsl.ContainerOp know which instance of docker container it should hit?
I did a lot of searching and also explored kfp package to see if that helps but to my luck i could not even find a closer solution to it. First of all is it possible? Am i in the right direction? Can someone please help me in my R&D?