KubernetesCompute 클래스
비고
이는 실험적 클래스이며 언제든지 변경 될 수 있습니다. 자세한 내용은 https://aka.ms/acr/connected-registry을 참조하세요.
KubernetesCompute(미리 보기)는 클러스터 관리자가 작업 영역에 연결된 고객 관리형 K8s 클러스터입니다.
사용자가 컴퓨팅에 대한 액세스 및 할당량을 부여하면 한 노드 또는 분산 다중 노드 ML 워크로드를 쉽게 지정하고 컴퓨팅에 제출할 수 있습니다. 컴퓨팅은 컨테이너화된 환경에서 실행되고 Docker 컨테이너에 모델 종속성을 패키지합니다. 자세한 내용은 Azure Machine Learning의 컴퓨팅 대상을 참조하세요. https://docs.microsoft.com/azure/machine-learning/concept-compute-target
클래스 ComputeTarget 생성자입니다.
제공된 작업 영역과 연결된 Compute 개체의 클라우드 표현을 검색합니다. 검색된 Compute 개체의 특정 형식에 해당하는 자식 클래스의 인스턴스를 반환합니다.
생성자
KubernetesCompute(workspace, name)
매개 변수
| Name | Description |
|---|---|
|
workspace
필수
|
검색할 KubernetesCompute 개체를 포함하는 작업 영역 개체입니다. |
|
name
필수
|
검색할 KubernetesCompute 개체의 이름입니다. |
|
workspace
필수
|
검색할 Compute 개체를 포함하는 작업 영역 개체입니다. |
|
name
필수
|
검색할 Compute 개체의 이름입니다. |
설명
다음 예제에서는 프로비전된 <xref:azureml.contrib.core.compute.KubernetesCompute.KubernetesCompute> 영구 컴퓨팅 대상이 만들어집니다.
provisioning_configuration 이 예제의 매개 변수는 자식 클래스인 형식<xref:azureml.contrib.core.compute.KubernetesCompute.KubernetesComputeAttachConfiguration>입니다<xref:azureml.contrib.core.compute.KubernetesCompute.ComputeTargetAttachConfiguration>.
메서드
| attach_configuration |
컴퓨팅 대상을 연결하기 위한 구성 개체를 만듭니다. |
| delete |
KubernetesCompute 개체에는 삭제가 지원되지 않습니다. detach를 대신 사용하세요. |
| deserialize |
JSON 개체를 KubernetesCompute 개체로 변환합니다. |
| detach |
연결된 작업 영역에서 KubernetesCompute 개체를 분리합니다. 기본 클라우드 개체는 삭제되지 않고 연결만 제거됩니다. |
| get |
GET 컴퓨팅 개체 요청을 mlc에 보냅니다. |
| get_status |
KubernetesCompute 클러스터에 대한 현재 세부 상태를 검색합니다. |
| refresh_state |
개체의 속성에 대한 현재 위치 업데이트를 수행합니다. 이 메서드는 해당 클라우드 개체의 현재 상태에 따라 속성을 업데이트합니다. 이는 주로 컴퓨팅 상태의 수동 폴링에 사용됩니다. |
| serialize |
이 KubernetesCompute 개체를 JSON 직렬화된 사전으로 변환합니다. |
| wait_for_completion |
KubernetesCompute 클러스터가 프로비저닝을 완료할 때까지 기다립니다. |
attach_configuration
컴퓨팅 대상을 연결하기 위한 구성 개체를 만듭니다.
static attach_configuration(resource_id=None, namespace=None, identity_type=None, identity_ids=None)
매개 변수
| Name | Description |
|---|---|
|
resource_id
|
리소스 ID입니다. Default value: None
|
|
namespace
|
컴퓨팅 대상에 제출된 워크로드에서 사용할 Kubernetes 네임스페이스입니다. Default value: None
|
|
identity_type
|
ID 유형입니다. Default value: None
|
|
identity_ids
|
사용자 할당 ID에 대한 리소스 ID 목록입니다. 예. ['/subscriptions/<subid>/resourceGroups/<rg>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<id>'] Default value: None
|
반환
| 형식 | Description |
|---|---|
|
<xref:azureml.contrib.core.compute.KubernetesCompute.KubernetesComputeAttachConfiguration>
|
KubernetesCompute 개체를 연결할 때 사용할 구성 개체입니다. |
delete
deserialize
JSON 개체를 KubernetesCompute 개체로 변환합니다.
static deserialize(workspace, object_dict)
매개 변수
| Name | Description |
|---|---|
|
workspace
필수
|
KubernetesCompute 개체가 연결된 작업 영역 개체입니다. |
|
object_dict
필수
|
KubernetesCompute 개체로 변환할 JSON 개체입니다. |
반환
| 형식 | Description |
|---|---|
|
<xref:azureml.contrib.core.compute.KubernetesCompute.KubernetesCompute>
|
제공된 JSON 개체의 KubernetesCompute 표현입니다. |
예외
| 형식 | Description |
|---|---|
설명
ComputeTargetException 제공된 작업 영역이 Compute와 연결된 작업 영역이 아닌 경우 발생합니다.
detach
연결된 작업 영역에서 KubernetesCompute 개체를 분리합니다.
기본 클라우드 개체는 삭제되지 않고 연결만 제거됩니다.
detach()
예외
| 형식 | Description |
|---|---|
get
GET 컴퓨팅 개체 요청을 mlc에 보냅니다.
get()
get_status
KubernetesCompute 클러스터에 대한 현재 세부 상태를 검색합니다.
get_status()
반환
| 형식 | Description |
|---|---|
|
클러스터에 대한 자세한 상태 개체 |
refresh_state
개체의 속성에 대한 현재 위치 업데이트를 수행합니다.
이 메서드는 해당 클라우드 개체의 현재 상태에 따라 속성을 업데이트합니다. 이는 주로 컴퓨팅 상태의 수동 폴링에 사용됩니다.
refresh_state()
serialize
이 KubernetesCompute 개체를 JSON 직렬화된 사전으로 변환합니다.
serialize()
반환
| 형식 | Description |
|---|---|
|
이 KubernetesCompute 개체의 JSON 표현입니다. |
wait_for_completion
KubernetesCompute 클러스터가 프로비저닝을 완료할 때까지 기다립니다.
wait_for_completion(show_output=False, is_delete_operation=False)
매개 변수
| Name | Description |
|---|---|
|
show_output
|
자세한 출력을 제공하는 부울입니다. Default value: False
|
|
is_delete_operation
|
작업이 삭제를 위한 것인지 여부를 나타냅니다. Default value: False
|
예외
| 형식 | Description |
|---|---|