KubernetesCompute クラス

Kubernetes コンピューティング リソース。

継承
azure.ai.ml.entities._compute.compute.Compute
KubernetesCompute

コンストラクター

KubernetesCompute(*, namespace: str = 'default', properties: Dict[str, Any] | None = None, identity: IdentityConfiguration | None = None, **kwargs: Any)

パラメーター

名前 説明
namespace
必須

KubernetesCompute の名前空間。 既定値は "default" です。

properties
必須

Kubernetes コンピューティング リソースのプロパティ。

identity
必須

コンピューティング クラスターに関連付けられている ID。

キーワードのみのパラメーター

名前 説明
namespace
既定値: default
properties
必須
identity
必須

KubernetesCompute オブジェクトの作成。


   from azure.ai.ml.entities import KubernetesCompute

   k8s_compute = KubernetesCompute(
       identity=IdentityConfiguration(
           type="UserAssigned",
           user_assigned_identities=[
               ManagedIdentityConfiguration(
                   resource_id="/subscriptions/1234567-abcd-ef12-1234-12345/resourcegroups/our_rg_eastus/providers/Microsoft.ManagedIdentity/userAssignedIdentities/our-agent-aks"
               )
           ],
       ),
   )

メソッド

dump

コンピューティング コンテンツを yaml 形式のファイルにダンプします。

dump

コンピューティング コンテンツを yaml 形式のファイルにダンプします。

dump(dest: str | PathLike | IO, **kwargs: Any) -> None

パラメーター

名前 説明
dest
必須
Union[<xref:PathLike>, str, IO[AnyStr]]

このコンピューティングのコンテンツを受信する宛先。 ローカル ファイルへのパス、または既に開いているファイル ストリームである必要があります。 dest がファイル パスの場合は、新しいファイルが作成され、ファイルが存在する場合は例外が発生します。 dest が開いているファイルの場合、ファイルは に直接書き込まれ、ファイルが書き込み可能でない場合は例外が発生します。

属性

base_path

リソースのベース パス。

戻り値

説明
str

リソースのベース パス。

created_on

コンピューティング リソースの作成タイムスタンプ。

戻り値

説明

コンピューティング リソースの作成タイムスタンプ。

creation_context

リソースの作成コンテキスト。

戻り値

説明

リソースの作成メタデータ。

id

リソース ID。

戻り値

説明

リソースのグローバル ID、Azure Resource Manager (ARM) ID。

provisioning_errors

コンピューティング リソースのプロビジョニング エラー。

戻り値

説明

コンピューティング リソースのプロビジョニング エラー。

provisioning_state

コンピューティング リソースのプロビジョニング状態。

戻り値

説明

コンピューティング リソースのプロビジョニング状態。

type

コンピューティングの種類。

戻り値

説明

コンピューティングの種類。