KFP v2 add_port
#11188
Replies: 2 comments 1 reply
-
|
Can you describe what you want to do with exposing ports in the pipeline step pods? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
@rimolive the purpose of add_port is as follows: we wish to allow different pods to communicate with each other. Each pod is loaded with different programs which needs to exchange data for federal learning applications. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
kfp == 2.8.0
kfp-kubernetes == 1.2.0
@dsl.component()
def server():
....
@dsl.pipeline()
def my_pipeline():
server_task=server()
server_task.add_port(V1ContainerPort(name='my-port', container_port=8080))
---> server_task.add_port(V1ContainerPort(name='my-port', container_port=8080))
AttributeError: 'PipelineTask' object has no attribute 'add_port'
In kfpv1 the code can work, but in kfpv2 'add_port' had been removed. Is there any method to add port on task ?
Beta Was this translation helpful? Give feedback.
All reactions