Skip to content

Commit 641328e

Browse files
committed
Regenerate list of EC2 instances for cluster autoscaler using latest metadata.
1 parent 09e1446 commit 641328e

File tree

1 file changed

+248
-15
lines changed

1 file changed

+248
-15
lines changed

cluster-autoscaler/cloudprovider/aws/ec2_instance_types.go

Lines changed: 248 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ limitations under the License.
1818

1919
package aws
2020

21-
// InstanceType is spec of EC2 instance
2221
type InstanceType struct {
2322
InstanceType string
2423
VCPU int64
@@ -214,16 +213,22 @@ var InstanceTypes = map[string]*InstanceType{
214213
MemoryMb: 8192,
215214
GPU: 0,
216215
},
217-
"c5a.large": {
218-
InstanceType: "c5a.large",
219-
VCPU: 2,
220-
MemoryMb: 4096,
216+
"c5a.12xlarge": {
217+
InstanceType: "c5a.12xlarge",
218+
VCPU: 48,
219+
MemoryMb: 98304,
221220
GPU: 0,
222221
},
223-
"c5a.xlarge": {
224-
InstanceType: "c5a.xlarge",
225-
VCPU: 4,
226-
MemoryMb: 8192,
222+
"c5a.16xlarge": {
223+
InstanceType: "c5a.16xlarge",
224+
VCPU: 64,
225+
MemoryMb: 131072,
226+
GPU: 0,
227+
},
228+
"c5a.24xlarge": {
229+
InstanceType: "c5a.24xlarge",
230+
VCPU: 96,
231+
MemoryMb: 196608,
227232
GPU: 0,
228233
},
229234
"c5a.2xlarge": {
@@ -244,24 +249,66 @@ var InstanceTypes = map[string]*InstanceType{
244249
MemoryMb: 65536,
245250
GPU: 0,
246251
},
247-
"c5a.12xlarge": {
248-
InstanceType: "c5a.12xlarge",
252+
"c5a.large": {
253+
InstanceType: "c5a.large",
254+
VCPU: 2,
255+
MemoryMb: 4096,
256+
GPU: 0,
257+
},
258+
"c5a.xlarge": {
259+
InstanceType: "c5a.xlarge",
260+
VCPU: 4,
261+
MemoryMb: 8192,
262+
GPU: 0,
263+
},
264+
"c5ad.12xlarge": {
265+
InstanceType: "c5ad.12xlarge",
249266
VCPU: 48,
250267
MemoryMb: 98304,
251268
GPU: 0,
252269
},
253-
"c5a.16xlarge": {
254-
InstanceType: "c5a.16xlarge",
270+
"c5ad.16xlarge": {
271+
InstanceType: "c5ad.16xlarge",
255272
VCPU: 64,
256273
MemoryMb: 131072,
257274
GPU: 0,
258275
},
259-
"c5a.24xlarge": {
260-
InstanceType: "c5a.24xlarge",
276+
"c5ad.24xlarge": {
277+
InstanceType: "c5ad.24xlarge",
261278
VCPU: 96,
262279
MemoryMb: 196608,
263280
GPU: 0,
264281
},
282+
"c5ad.2xlarge": {
283+
InstanceType: "c5ad.2xlarge",
284+
VCPU: 8,
285+
MemoryMb: 16384,
286+
GPU: 0,
287+
},
288+
"c5ad.4xlarge": {
289+
InstanceType: "c5ad.4xlarge",
290+
VCPU: 16,
291+
MemoryMb: 32768,
292+
GPU: 0,
293+
},
294+
"c5ad.8xlarge": {
295+
InstanceType: "c5ad.8xlarge",
296+
VCPU: 32,
297+
MemoryMb: 65536,
298+
GPU: 0,
299+
},
300+
"c5ad.large": {
301+
InstanceType: "c5ad.large",
302+
VCPU: 2,
303+
MemoryMb: 4096,
304+
GPU: 0,
305+
},
306+
"c5ad.xlarge": {
307+
InstanceType: "c5ad.xlarge",
308+
VCPU: 4,
309+
MemoryMb: 8192,
310+
GPU: 0,
311+
},
265312
"c5d": {
266313
InstanceType: "c5d",
267314
VCPU: 72,
@@ -430,6 +477,66 @@ var InstanceTypes = map[string]*InstanceType{
430477
MemoryMb: 8192,
431478
GPU: 0,
432479
},
480+
"c6gd": {
481+
InstanceType: "c6gd",
482+
VCPU: 64,
483+
MemoryMb: 0,
484+
GPU: 0,
485+
},
486+
"c6gd.12xlarge": {
487+
InstanceType: "c6gd.12xlarge",
488+
VCPU: 48,
489+
MemoryMb: 98304,
490+
GPU: 0,
491+
},
492+
"c6gd.16xlarge": {
493+
InstanceType: "c6gd.16xlarge",
494+
VCPU: 64,
495+
MemoryMb: 131072,
496+
GPU: 0,
497+
},
498+
"c6gd.2xlarge": {
499+
InstanceType: "c6gd.2xlarge",
500+
VCPU: 8,
501+
MemoryMb: 16384,
502+
GPU: 0,
503+
},
504+
"c6gd.4xlarge": {
505+
InstanceType: "c6gd.4xlarge",
506+
VCPU: 16,
507+
MemoryMb: 32768,
508+
GPU: 0,
509+
},
510+
"c6gd.8xlarge": {
511+
InstanceType: "c6gd.8xlarge",
512+
VCPU: 32,
513+
MemoryMb: 65536,
514+
GPU: 0,
515+
},
516+
"c6gd.large": {
517+
InstanceType: "c6gd.large",
518+
VCPU: 2,
519+
MemoryMb: 4096,
520+
GPU: 0,
521+
},
522+
"c6gd.medium": {
523+
InstanceType: "c6gd.medium",
524+
VCPU: 1,
525+
MemoryMb: 2048,
526+
GPU: 0,
527+
},
528+
"c6gd.metal": {
529+
InstanceType: "c6gd.metal",
530+
VCPU: 64,
531+
MemoryMb: 131072,
532+
GPU: 0,
533+
},
534+
"c6gd.xlarge": {
535+
InstanceType: "c6gd.xlarge",
536+
VCPU: 4,
537+
MemoryMb: 8192,
538+
GPU: 0,
539+
},
433540
"cc2.8xlarge": {
434541
InstanceType: "cc2.8xlarge",
435542
VCPU: 32,
@@ -766,6 +873,12 @@ var InstanceTypes = map[string]*InstanceType{
766873
MemoryMb: 499712,
767874
GPU: 0,
768875
},
876+
"inf1": {
877+
InstanceType: "inf1",
878+
VCPU: 96,
879+
MemoryMb: 0,
880+
GPU: 0,
881+
},
769882
"inf1.24xlarge": {
770883
InstanceType: "inf1.24xlarge",
771884
VCPU: 96,
@@ -1300,6 +1413,66 @@ var InstanceTypes = map[string]*InstanceType{
13001413
MemoryMb: 16384,
13011414
GPU: 0,
13021415
},
1416+
"m6gd": {
1417+
InstanceType: "m6gd",
1418+
VCPU: 64,
1419+
MemoryMb: 0,
1420+
GPU: 0,
1421+
},
1422+
"m6gd.12xlarge": {
1423+
InstanceType: "m6gd.12xlarge",
1424+
VCPU: 48,
1425+
MemoryMb: 196608,
1426+
GPU: 0,
1427+
},
1428+
"m6gd.16xlarge": {
1429+
InstanceType: "m6gd.16xlarge",
1430+
VCPU: 64,
1431+
MemoryMb: 262144,
1432+
GPU: 0,
1433+
},
1434+
"m6gd.2xlarge": {
1435+
InstanceType: "m6gd.2xlarge",
1436+
VCPU: 8,
1437+
MemoryMb: 32768,
1438+
GPU: 0,
1439+
},
1440+
"m6gd.4xlarge": {
1441+
InstanceType: "m6gd.4xlarge",
1442+
VCPU: 16,
1443+
MemoryMb: 65536,
1444+
GPU: 0,
1445+
},
1446+
"m6gd.8xlarge": {
1447+
InstanceType: "m6gd.8xlarge",
1448+
VCPU: 32,
1449+
MemoryMb: 131072,
1450+
GPU: 0,
1451+
},
1452+
"m6gd.large": {
1453+
InstanceType: "m6gd.large",
1454+
VCPU: 2,
1455+
MemoryMb: 8192,
1456+
GPU: 0,
1457+
},
1458+
"m6gd.medium": {
1459+
InstanceType: "m6gd.medium",
1460+
VCPU: 1,
1461+
MemoryMb: 4096,
1462+
GPU: 0,
1463+
},
1464+
"m6gd.metal": {
1465+
InstanceType: "m6gd.metal",
1466+
VCPU: 64,
1467+
MemoryMb: 262144,
1468+
GPU: 0,
1469+
},
1470+
"m6gd.xlarge": {
1471+
InstanceType: "m6gd.xlarge",
1472+
VCPU: 4,
1473+
MemoryMb: 16384,
1474+
GPU: 0,
1475+
},
13031476
"p2": {
13041477
InstanceType: "p2",
13051478
VCPU: 64,
@@ -1834,6 +2007,66 @@ var InstanceTypes = map[string]*InstanceType{
18342007
MemoryMb: 32768,
18352008
GPU: 0,
18362009
},
2010+
"r6gd": {
2011+
InstanceType: "r6gd",
2012+
VCPU: 64,
2013+
MemoryMb: 0,
2014+
GPU: 0,
2015+
},
2016+
"r6gd.12xlarge": {
2017+
InstanceType: "r6gd.12xlarge",
2018+
VCPU: 48,
2019+
MemoryMb: 393216,
2020+
GPU: 0,
2021+
},
2022+
"r6gd.16xlarge": {
2023+
InstanceType: "r6gd.16xlarge",
2024+
VCPU: 64,
2025+
MemoryMb: 524288,
2026+
GPU: 0,
2027+
},
2028+
"r6gd.2xlarge": {
2029+
InstanceType: "r6gd.2xlarge",
2030+
VCPU: 8,
2031+
MemoryMb: 65536,
2032+
GPU: 0,
2033+
},
2034+
"r6gd.4xlarge": {
2035+
InstanceType: "r6gd.4xlarge",
2036+
VCPU: 16,
2037+
MemoryMb: 131072,
2038+
GPU: 0,
2039+
},
2040+
"r6gd.8xlarge": {
2041+
InstanceType: "r6gd.8xlarge",
2042+
VCPU: 32,
2043+
MemoryMb: 262144,
2044+
GPU: 0,
2045+
},
2046+
"r6gd.large": {
2047+
InstanceType: "r6gd.large",
2048+
VCPU: 2,
2049+
MemoryMb: 16384,
2050+
GPU: 0,
2051+
},
2052+
"r6gd.medium": {
2053+
InstanceType: "r6gd.medium",
2054+
VCPU: 1,
2055+
MemoryMb: 8192,
2056+
GPU: 0,
2057+
},
2058+
"r6gd.metal": {
2059+
InstanceType: "r6gd.metal",
2060+
VCPU: 64,
2061+
MemoryMb: 524288,
2062+
GPU: 0,
2063+
},
2064+
"r6gd.xlarge": {
2065+
InstanceType: "r6gd.xlarge",
2066+
VCPU: 4,
2067+
MemoryMb: 32768,
2068+
GPU: 0,
2069+
},
18372070
"t1.micro": {
18382071
InstanceType: "t1.micro",
18392072
VCPU: 1,

0 commit comments

Comments
 (0)