aws: change default controller model to t3.medium
As 2GB of RAM is not enough for running standalone controller node with
graceful upgrade strategy (2 API servers does not fit into 2GB node).
@@ -31,7 +31,13 @@ variable "worker_count" {
variable "controller_type" {
type = string
- default = "t3.small"
+ # When doing the upgrades of controlplane on t3.small instance type when
+ # having one single controlplane node, t3.small has not enough memory (2GB)
+ # to run more than one instance of kube-apiserver in parallel, so we need to use
+ # a bigger instance. With HA controlplane, t3.small should be fine, though for
+ # production setups, it's recommended to use instances with more RAM, to
+ # give plenty of usable memory for etcd and kube-apiserver.
+ default = "t3.medium"
description = "EC2 instance type for controllers"
}
