fix(components): Add default V1ContainerPort protocol value for the kfserving component (#4956)
This commit is contained in:
parent
27fa60b568
commit
b5af45852b
|
|
@ -102,7 +102,7 @@ def customEndpointSpec(custom_model_spec, service_account):
|
|||
else None
|
||||
)
|
||||
ports = (
|
||||
[client.V1ContainerPort(container_port=int(custom_model_spec.get("port", "")))]
|
||||
[client.V1ContainerPort(container_port=int(custom_model_spec.get("port", "")), protocol="TCP")]
|
||||
if custom_model_spec.get("port", "")
|
||||
else None
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue