tencent cloud

Tencent Kubernetes Engine

パブリックネットワークアクセス関連

PDF
フォーカスモード
フォントサイズ
最終更新日: 2025-09-29 12:40:55
ここではディープラーニングのコンテナイメージの構築および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....
上記の問題に対し、2種類のパブリックネットワークにアクセスする方法を提供しています。
NAT Gatewayを使用する:あるVPC下の複数のインスタンスがパブリックネットワークと通信する必要がある場合に適用されます。NAT Gatewayによるパブリックネットワークへのアクセス というドキュメントに従って操作してください。
注意
作成されたNAT GatewayおよびルートテーブルはTKE Serverlessクラスターと同じリージョン、同じプライベートネットワークVPCである必要があります。
Elastic IP(EIP)を使用する:単一または少数のインスタンスがパブリックネットワーク相互接続を実現する必要がある場合に適用されます。EIPを使用してパブリックネットワークにアクセスするというドキュメントに従って操作してください。

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック