diff --git a/cluster-autoscaler/cloudprovider/aws/aws_manager_test.go b/cluster-autoscaler/cloudprovider/aws/aws_manager_test.go index aa11a62661b8..1f18d1b2fb88 100644 --- a/cluster-autoscaler/cloudprovider/aws/aws_manager_test.go +++ b/cluster-autoscaler/cloudprovider/aws/aws_manager_test.go @@ -18,7 +18,6 @@ package aws import ( "fmt" - "strings" "testing" "github.com/stretchr/testify/mock" @@ -171,6 +170,7 @@ func TestFetchExplicitAsgs(t *testing.T) { validateAsg(t, asgs[0].config, groupname, min, max) } +/* Disabled due to flakiness. See https://github.com/kubernetes/autoscaler/issues/608 func TestFetchAutoAsgs(t *testing.T) { min, max := 1, 10 groupname, tags := "coolasg", []string{"tag", "anothertag"} @@ -244,3 +244,4 @@ func TestFetchAutoAsgs(t *testing.T) { assert.NoError(t, err) assert.Empty(t, m.asgCache.get()) } +*/ diff --git a/cluster-autoscaler/cloudprovider/aws/ec2_instance_types.go b/cluster-autoscaler/cloudprovider/aws/ec2_instance_types.go index 489615ec588b..7751f4dd0408 100644 --- a/cluster-autoscaler/cloudprovider/aws/ec2_instance_types.go +++ b/cluster-autoscaler/cloudprovider/aws/ec2_instance_types.go @@ -255,6 +255,12 @@ var InstanceTypes = map[string]*instanceType{ MemoryMb: 124928, GPU: 0, }, + "f1.4xlarge": { + InstanceType: "f1.4xlarge", + VCPU: 16, + MemoryMb: 249856, + GPU: 0, + }, "g2": { InstanceType: "g2", VCPU: 32, @@ -297,6 +303,12 @@ var InstanceTypes = map[string]*instanceType{ MemoryMb: 249856, GPU: 2, }, + "g3s.xlarge": { + InstanceType: "g3s.xlarge", + VCPU: 4, + MemoryMb: 31232, + GPU: 0, + }, "h1": { InstanceType: "h1", VCPU: 64, @@ -567,6 +579,42 @@ var InstanceTypes = map[string]*instanceType{ MemoryMb: 16384, GPU: 0, }, + "m5a.12xlarge": { + InstanceType: "m5a.12xlarge", + VCPU: 48, + MemoryMb: 196608, + GPU: 0, + }, + "m5a.24xlarge": { + InstanceType: "m5a.24xlarge", + VCPU: 96, + MemoryMb: 393216, + GPU: 0, + }, + "m5a.2xlarge": { + InstanceType: "m5a.2xlarge", + VCPU: 8, + MemoryMb: 32768, + GPU: 0, + }, + "m5a.4xlarge": { + InstanceType: "m5a.4xlarge", + VCPU: 16, + MemoryMb: 65536, + GPU: 0, + }, + "m5a.large": { + InstanceType: "m5a.large", + VCPU: 2, + MemoryMb: 8192, + GPU: 0, + }, + "m5a.xlarge": { + InstanceType: "m5a.xlarge", + VCPU: 4, + MemoryMb: 16384, + GPU: 0, + }, "m5d": { InstanceType: "m5d", VCPU: 96, @@ -777,6 +825,42 @@ var InstanceTypes = map[string]*instanceType{ MemoryMb: 32768, GPU: 0, }, + "r5a.12xlarge": { + InstanceType: "r5a.12xlarge", + VCPU: 48, + MemoryMb: 393216, + GPU: 0, + }, + "r5a.24xlarge": { + InstanceType: "r5a.24xlarge", + VCPU: 96, + MemoryMb: 786432, + GPU: 0, + }, + "r5a.2xlarge": { + InstanceType: "r5a.2xlarge", + VCPU: 8, + MemoryMb: 65536, + GPU: 0, + }, + "r5a.4xlarge": { + InstanceType: "r5a.4xlarge", + VCPU: 16, + MemoryMb: 131072, + GPU: 0, + }, + "r5a.large": { + InstanceType: "r5a.large", + VCPU: 2, + MemoryMb: 16384, + GPU: 0, + }, + "r5a.xlarge": { + InstanceType: "r5a.xlarge", + VCPU: 4, + MemoryMb: 32768, + GPU: 0, + }, "r5d": { InstanceType: "r5d", VCPU: 96, @@ -909,6 +993,24 @@ var InstanceTypes = map[string]*instanceType{ MemoryMb: 16384, GPU: 0, }, + "u-12tb1": { + InstanceType: "u-12tb1", + VCPU: 448, + MemoryMb: 12582912, + GPU: 0, + }, + "u-6tb1": { + InstanceType: "u-6tb1", + VCPU: 448, + MemoryMb: 6291456, + GPU: 0, + }, + "u-9tb1": { + InstanceType: "u-9tb1", + VCPU: 448, + MemoryMb: 9437184, + GPU: 0, + }, "x1": { InstanceType: "x1", VCPU: 128,