tencent cloud

피드백

공중망 액세스

마지막 업데이트 시간:2023-04-28 15:30:11
    본문은 딥러닝 컨테이너 이미지 구축TKE Serverless에서 딥러닝 실행 시 발생할 수 있는 질문에 대한 답변을 제공합니다.

    컨테이너는 공중망에 어떻게 액세스합니까?

    작업 중에 교육 데이터 세트를 다운로드해야 할 수 있으므로 공중망에 대한 액세스가 필요할 수 있습니다. 그러나 초기 상태의 컨테이너는 공중망에 액세스할 수 없으며 데이터 세트 다운로드로 직접 명령을 실행하면 다음 오류가 보고됩니다.
    W tensorflow/core/platform/cloud/google_auth_provider.cc:184] All attempts to get a Google authentication bearer token failed, returning an empty token. Retrieving token from files failed with "Not found: Could not locate the credentials file.". Retrieving token from GCE failed with "Failed precondition: Error executing an HTTP request: libcurl code 6 meaning 'Couldn't resolve host name', error details: Could not resolve host: metadata".
    E tensorflow/core/platform/cloud/curl_http_request.cc:614] The transmission of request 0x5b328e0 (URI: https://www.googleapis.com/storage/v1/b/tfds-data/o/dataset_info%2Fmnist%2F3.0.1?fields=size%2Cgeneration%2Cupdated) has been stuck at 0 of 0 bytes for 61 seconds and will be aborted....
    상기 문제에 대해 두 가지 공중망 액세스 방법이 제공됩니다.
    NAT Gateway 사용: VPC의 많은 Pod가 공중망으로 통신해야 하는 시나리오에 적합합니다. NAT Gateway를 통한 인터넷 액세스를 따라 구성하십시오.
    주의사항
    생성된 NAT Gateway 및 라우팅 테이블은 TKE Serverless 클러스터와 동일한 리전 및 VPC에 있어야 합니다.
    EIP 사용: 하나 또는 몇 개의 Pod가 공중망으로 상호 연결되어야 하는 시나리오에 적합합니다. EIP 사용하여 공중망 액세스에 따라 작업하십시오.
    문의하기

    고객의 업무에 전용 서비스를 제공해드립니다.

    기술 지원

    더 많은 도움이 필요하시면, 티켓을 통해 연락 바랍니다. 티켓 서비스는 연중무휴 24시간 제공됩니다.

    연중무휴 24시간 전화 지원