ALIYUN::ACS::VirtualCapacityReservation类型用于创建容量预留任务。
语法
{
"Type": "ALIYUN::ACS::VirtualCapacityReservation",
"Properties": {
"PodPostpaidSpec": Map
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
PodPostpaidSpec | Map | 否 | 是 | 后付费Pod规格详情。 | 更多详情,请参考PodPostpaidSpec属性。 |
PodPostpaidSpec语法
"PodPostpaidSpec": {
"GpuQuantityConfigs": Map,
"CpuCore": Integer,
"MemGib": Integer,
"Replicas": Integer
}
PodPostpaidSpec属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
CpuCore | Integer | 否 | 是 | CPU内核数。 | 无 |
GpuQuantityConfigs | Map | 否 | 是 | GPU规格模块。 | 更多信息,请参考GpuQuantityConfigs属性。 |
MemGib | Integer | 否 | 是 | GPU的内存大小。 | 无 |
Replicas | Integer | 否 | 是 | 副本的数量。 | 无 |
GpuQuantityConfigs语法
"GpuQuantityConfigs": {
"GpuModel": String,
"ComputeQos": String,
"Arch": String,
"GpuQuantity": Integer
}
GpuQuantityConfigs属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
Arch | String | 否 | 是 | GPU的架构。 | 无 |
ComputeQos | String | 否 | 是 | GPU计算的QoS。 | 取值:
|
GpuModel | String | 否 | 是 | GPU型号类型。 | 无 |
GpuQuantity | Integer | 否 | 是 | GPU的数量。 | 无 |
返回值
Fn::GetAtt
无
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
PodPostpaidSpec:
AssociationPropertyMetadata:
Parameters:
GpuQuantityConfigs:
AssociationPropertyMetadata:
Parameters:
GpuModel:
Type: String
Description:
en: The GPU model type.
Required: false
ComputeQos:
Type: String
Description:
en: The QoS of the GPU compute.
AllowedValues:
- default
- best-effort
Required: false
Arch:
Type: String
Description:
en: The architecture of the GPU.
Required: false
GpuQuantity:
Type: Number
Description:
en: The number of GPUs.
Required: false
MinValue: 1
Type: Json
Description:
en: The GPU spec module.
Required: false
CpuCore:
Type: Number
Description:
en: The number of CPU cores.
Required: false
MinValue: 1
MemGib:
Type: Number
Description:
en: The memory size of the GPU.
Required: false
MinValue: 1
Replicas:
Type: Number
Description:
en: The number of the replicas.
Required: false
MinValue: 1
Type: Json
Description:
en: Postpaid pod spec for inquiry.
Required: false
Resources:
VirtualCapacityReservation:
Type: ALIYUN::ACS::VirtualCapacityReservation
Properties:
PodPostpaidSpec:
Ref: PodPostpaidSpec
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"PodPostpaidSpec": {
"AssociationPropertyMetadata": {
"Parameters": {
"GpuQuantityConfigs": {
"AssociationPropertyMetadata": {
"Parameters": {
"GpuModel": {
"Type": "String",
"Description": {
"en": "The GPU model type."
},
"Required": false
},
"ComputeQos": {
"Type": "String",
"Description": {
"en": "The QoS of the GPU compute."
},
"AllowedValues": [
"default",
"best-effort"
],
"Required": false
},
"Arch": {
"Type": "String",
"Description": {
"en": "The architecture of the GPU."
},
"Required": false
},
"GpuQuantity": {
"Type": "Number",
"Description": {
"en": "The number of GPUs."
},
"Required": false,
"MinValue": 1
}
}
},
"Type": "Json",
"Description": {
"en": "The GPU spec module."
},
"Required": false
},
"CpuCore": {
"Type": "Number",
"Description": {
"en": "The number of CPU cores."
},
"Required": false,
"MinValue": 1
},
"MemGib": {
"Type": "Number",
"Description": {
"en": "The memory size of the GPU."
},
"Required": false,
"MinValue": 1
},
"Replicas": {
"Type": "Number",
"Description": {
"en": "The number of the replicas."
},
"Required": false,
"MinValue": 1
}
}
},
"Type": "Json",
"Description": {
"en": "Postpaid pod spec for inquiry."
},
"Required": false
}
},
"Resources": {
"VirtualCapacityReservation": {
"Type": "ALIYUN::ACS::VirtualCapacityReservation",
"Properties": {
"PodPostpaidSpec": {
"Ref": "PodPostpaidSpec"
}
}
}
}
}
该文章对您有帮助吗?