-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19fd917
commit 15d2ea9
Showing
6 changed files
with
54 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# if we set only vcpus = 2 and ram = 2048 we find: STD2-2-2 and STD3-2-2. | ||
# Which differs by process generations. | ||
|
||
# If we want a STD2-2-2 | ||
data "vkcs_compute_flavor" "basic_cascadelake" { | ||
vcpus = 2 | ||
ram = 2048 | ||
cpu_generation = "cascadelake-v1" | ||
} | ||
|
||
# If we want a STD3-2-2 | ||
data "vkcs_compute_flavor" "basic_icelake" { | ||
vcpus = 2 | ||
ram = 2048 | ||
cpu_generation = "icelake-v1" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# If the exact amount of disk is not so important to you, then you can specify the minimum value that will satisfy you | ||
# and flavor with minimum of disk will be automatically selected for you. | ||
data "vkcs_compute_flavor" "basic1" { | ||
vcpus = 4 | ||
ram = 8192 | ||
min_disk = 30 | ||
} | ||
|
||
# But if you also do not specify the exact amount of RAM, then flavor will first be selected based on the minimum RAM | ||
# and if RAM is equal in terms of disk space. | ||
data "vkcs_compute_flavor" "basic2" { | ||
vcpus = 4 | ||
min_ram = 4096 | ||
min_disk = 20 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# If the exact amount of RAM is not so important to you, then you can specify the minimum value that will satisfy you | ||
# and flavor with minimum of ram will be automatically selected for you. | ||
data "vkcs_compute_flavor" "basic" { | ||
vcpus = 4 | ||
min_ram = 4096 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters