This commit is contained in:
ArielLima 2022-09-15 11:42:38 -06:00
Родитель 09173cb15c
Коммит 356e0f7a4e
3 изменённых файлов: 17 добавлений и 0 удалений

Просмотреть файл

@ -330,6 +330,12 @@ const (
VMSizeStandardL32sV2 VMSize = "Standard_L32s_v2"
VMSizeStandardL48sV2 VMSize = "Standard_L48s_v2"
VMSizeStandardL64sV2 VMSize = "Standard_L64s_v2"
// GPU VMs
VMSizeStandardNC4asT4V3 VMSize = "Standard_NC4as_T4_v3"
VMSizeStandardNC8asT4V3 VMSize = "Standard_NC8as_T4_v3"
VMSizeStandardNC16asT4V3 VMSize = "Standard_NC16as_T4_v3"
VMSizeStandardNC64asT4V3 VMSize = "Standard_NC64as_T4_v3"
)
// WorkerProfile represents a worker profile

Просмотреть файл

@ -60,6 +60,12 @@ func addRequiredResources(requiredResources map[string]int, vmSize api.VMSize, c
api.VMSizeStandardL32sV2: {CoreCount: 32, Family: "standardLsv2Family"},
api.VMSizeStandardL48sV2: {CoreCount: 48, Family: "standardLsv2Family"},
api.VMSizeStandardL64sV2: {CoreCount: 64, Family: "standardLsv2Family"},
// GPU nodes
api.VMSizeStandardNC4asT4V3: {CoreCount: 4, Family: "Standard_NC4as_T4_v3"},
api.VMSizeStandardNC8asT4V3: {CoreCount: 8, Family: "Standard_NC8as_T4_v3"},
api.VMSizeStandardNC16asT4V3: {CoreCount: 16, Family: "Standard_NC16as_T4_v3"},
api.VMSizeStandardNC64asT4V3: {CoreCount: 64, Family: "Standard_NC64as_T4_v3"},
}
vm, ok := vmTypesMap[vmSize]

Просмотреть файл

@ -74,6 +74,11 @@ var supportedWorkerVMSizes = map[api.VMSize]bool{
api.VMSizeStandardL32sV2: true,
api.VMSizeStandardL48sV2: true,
api.VMSizeStandardL64sV2: true,
// GPU
api.VMSizeStandardNC4asT4V3: true,
api.VMSizeStandardNC8asT4V3: true,
api.VMSizeStandardNC16asT4V3: true,
api.VMSizeStandardNC64asT4V3: true,
}
func DiskSizeIsValid(sizeGB int) bool {