Skip to content

Commit

Permalink
[src] change Spot-Vm to spot vm
Browse files Browse the repository at this point in the history
[src] Add spotSize attributes to eg
  • Loading branch information
EladTanaami committed Feb 18, 2024
1 parent 010dadf commit e8efdd6
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ properties:
example: standard_b1s
spotSizes:
title: Spot Sizes
description: "Available Spot-VM sizes. Find the list in Azure https://docs.microsoft.com/en-us/azure/virtual-machines/spot-vms?toc=/azure/virtual-machines/linux/toc.json&bc=/azure/virtual-machines/linux/breadcrumb/toc.json"
description: "Available Spot VM sizes. Find the list in Azure https://docs.microsoft.com/en-us/azure/virtual-machines/spot-vms?toc=/azure/virtual-machines/linux/toc.json&bc=/azure/virtual-machines/linux/breadcrumb/toc.json"
type: array
items:
type: string
Expand All @@ -606,6 +606,15 @@ properties:
items:
type: string
example: "standard_a2_v2"
spotSizeAttributes:
$ref: "../schemas/elastigroupVm-spotSizeAttributes.yaml"
excludedVmSizes:
type: array
description: |
Spot VM sizes to exclude when using the attribute-based VM sizes selection option.
example: [ "standard_a2_v2", "standard_d2s_v3" ]
items:
type: string
os:
type: string
example: Linux
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ properties:
spotSizes:
type: array
description: |
Available Spot-VM sizes.
Available Spot VM sizes.
items:
type: string
example: "standard_a2_v2"
Expand All @@ -30,6 +30,15 @@ properties:
items:
type: string
example: "standard_a2_v2"
spotSizeAttributes:
$ref: "../schemas/elastigroupVm-spotSizeAttributes.yaml"
excludedVmSizes:
type: array
description: |
Spot VM sizes to exclude when using the attribute-based VM sizes selection option.
example: [ "standard_a2_v2", "standard_d2s_v3" ]
items:
type: string
launchSpecification:
type: object
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ properties:
spotSizes:
type: array
description: |
Available Spot-VM sizes.
Available Spot VM sizes.
items:
type: string
example: "standard_a2_v2"
Expand All @@ -34,6 +34,15 @@ properties:
items:
type: string
example: "standard_a2_v2"
spotSizeAttributes:
$ref: "../schemas/elastigroupVm-spotSizeAttributes.yaml"
excludedVmSizes:
type: array
description: |
Spot VM sizes to exclude when using the attribute-based VM sizes selection option.
example: [ "standard_a2_v2", "standard_d2s_v3" ]
items:
type: string
os:
type: string
example: Linux
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
type: object
title: Elastigroup spot size attributes
description: |
Required instance attributes. Instance types will be selected based on these requirements.
properties:
minCpu:
type: integer
description: |
Minimum instance CPU units.
example: 2
maxCpu:
type: integer
description: |
Maximum instance CPU units.
example: 8
minStorage:
type: integer
description: |
Minimum instance storage (GiB).
example: 5
maxStorage:
type: integer
description: |
Maximum instance storage (GiB).
example: 50
minMemory:
type: integer
description: |
Minimum instance memory (GiB).
example: 2
maxMemory:
type: integer
description: |
Maximum instance memory (GiB).
example: 2
cpuArchitecture:
type: string
description: |
Required CPU architecture.
enum:
- X64
- ARM64
example: X64
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ properties:
spotSizes:
type: array
description: |
Defines the spot-VM sizes to use when launching VMs.
Defines the Spot VM sizes to use when launching VMs.
items:
type: string
example: "standard_a2_v2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ properties:
spotSizes:
type: array
description: |
Available Spot-VM sizes.
Available Spot VM sizes.
items:
type: string
example: "standard_a2_v2"
Expand Down

0 comments on commit e8efdd6

Please sign in to comment.