ML-TANGO / TANGO

public repo for TANGO (Target Aware No-code neural network Generation and Operation framework)
Other
68 stars 20 forks source link

kube_deploy rest_api port 수정 요청 #83

Closed jangjaemyung closed 11 months ago

jangjaemyung commented 11 months ago

deploy 생성 요청시 8901 포트로 생성 요청해야하는데 8902로 잘못되어있습니다.

수정 부탁드립니다.

[12/Sep/2023 16:26:08] "POST /api/project_type HTTP/1.1" 200 0
----------container_start----------
imagedeploy
test123
1
K8S
continer_start_api : kube-deploy:8902
container start error - HTTPConnectionPool(host='kube-deploy', port=8902): Max retries exceeded with url: /start?user_id=test123&project_id=1 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c2dfb4850>: Failed to establish a new connection: [Errno 111] Connection refused'))
HTTPConnectionPool(host='kube-deploy', port=8902): Max retries exceeded with url: /start?user_id=test123&project_id=1 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8c2dfb4850>: Failed to establish a new connection: [Errno 111] Connection refused'))
[12/Sep/2023 16:26:08] "POST /api/container_start HTTP/1.1" 200 282
ML-TANGO commented 11 months ago

@gm2-tesla 일단 눈에 띄는 부분은 project_manager/tango/projectHandler.py의 다음 부분이 해당 부분인거 같네요.

def get_deploy_host_port(deploy_type):
    port = ''
    if deploy_type == 'Cloud' :
        return "cloud-deploy", "8088"
    elif deploy_type == 'K8S' or deploy_type == 'K8S_Jetson_Nano':
        return "kube-deploy", "8902"
    else:
        # ondevice 등등.... 
        return "ondevice", "8891"

다른 부분도 있는지 확인후 수정 바랍니다.

gwonmin-tesla commented 11 months ago

kube-deploy의 호출 포트를 8901로 변경하였습니다.