(fixbug):推理服务监听端口和生命探针接口重复,去重。

This commit is contained in:
xiaoyangmai 2022-06-23 15:07:34 +08:00
parent 884de4dd6c
commit 5ef61dcdb2

View File

@ -920,6 +920,7 @@ instance_group [
except Exception as e:
print(e)
pod_ports = list(set(pod_ports))
k8s_client.create_deployment(
namespace=namespace,
name=name,
@ -1115,4 +1116,4 @@ class InferenceService_ModelView_Api(InferenceService_ModelView_base,MyappModelR
'metrics', 'health', 'expand','volume_mount']
edit_columns = add_columns
appbuilder.add_api(InferenceService_ModelView_Api)
appbuilder.add_api(InferenceService_ModelView_Api)