Skip to content

Commit

Permalink
Set default instance type to t3.medium for AWS
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciprian Hacman committed Jan 7, 2020
1 parent ac3413f commit 3c2dd46
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions upup/pkg/fi/cloudup/awsup/aws_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -1341,14 +1341,10 @@ func (c *awsCloudImplementation) DefaultInstanceType(cluster *kops.Cluster, ig *
var candidates []string

switch ig.Spec.Role {
case kops.InstanceGroupRoleMaster:
// Some regions do not (currently) support the m3 family; the c4 large is the cheapest non-burstable instance
// (us-east-2, ca-central-1, eu-west-2, ap-northeast-2).
// Also some accounts are no longer supporting m3 in us-east-1 zones
candidates = []string{"c5.large", "c4.large", "m3.medium"}

case kops.InstanceGroupRoleNode:
candidates = []string{"t3.medium", "t2.medium"}
case kops.InstanceGroupRoleMaster, kops.InstanceGroupRoleNode:
// t3.medium is the cheapest instance with 4GB of mem, unlimited by default, fast and has decent network
// c5.large and c4.large are a good second option in case t3.medium is not available in the AZ
candidates = []string{"t3.medium", "c5.large", "c4.large"}

case kops.InstanceGroupRoleBastion:
candidates = []string{"t3.micro", "t2.micro"}
Expand Down

0 comments on commit 3c2dd46

Please sign in to comment.