Skip to content

Commit

Permalink
Set the 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 18, 2020
1 parent cd9e01c commit d83a3c6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
17 changes: 17 additions & 0 deletions docs/releases/1.18-NOTES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Release notes for kops 1.18 series

(The kops 1.18 release has not been released yet, this is a document to gather
the notes prior to the release).

# Breaking changes

# Significant changes

* The default instance type for AWS is now t3.medium. This should provide better
performance and reduced costs in clusters where the average CPU usage is low.

# Required Actions

* No required actions yet known.

# Full change list since 1.17.0 release
14 changes: 5 additions & 9 deletions upup/pkg/fi/cloudup/awsup/aws_cloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -1341,17 +1341,13 @@ 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{"m3.medium", "c4.large"}

case kops.InstanceGroupRoleNode:
candidates = []string{"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{"t2.micro"}
candidates = []string{"t3.micro", "t2.micro"}

default:
return "", fmt.Errorf("unhandled role %q", ig.Spec.Role)
Expand Down

0 comments on commit d83a3c6

Please sign in to comment.