mirror of
https://github.com/FlipsideCrypto/convox.git
synced 2026-02-06 02:46:50 +00:00
aws: expose node_disk param to control node disk size
This commit is contained in:
parent
8124459813
commit
a3b7365259
@ -68,6 +68,7 @@ resource "aws_eks_node_group" "cluster" {
|
||||
count = 3
|
||||
|
||||
cluster_name = aws_eks_cluster.cluster.name
|
||||
disk_size = var.node_disk
|
||||
instance_types = [var.node_type]
|
||||
node_group_name = "${var.name}-${data.aws_availability_zones.available.names[count.index]}"
|
||||
node_role_arn = replace(aws_iam_role.nodes.arn, "role/convox/", "role/") # eks barfs on roles with paths
|
||||
|
||||
@ -13,3 +13,7 @@ variable "name" {
|
||||
variable "node_type" {
|
||||
default = "t3.small"
|
||||
}
|
||||
|
||||
variable "node_disk" {
|
||||
default = 20
|
||||
}
|
||||
|
||||
@ -43,6 +43,7 @@ module "cluster" {
|
||||
cidr = var.cidr
|
||||
name = var.name
|
||||
node_type = var.node_type
|
||||
node_disk = var.node_disk
|
||||
}
|
||||
|
||||
module "fluentd" {
|
||||
|
||||
@ -17,3 +17,7 @@ variable "release" {
|
||||
variable "region" {
|
||||
default = "us-east-1"
|
||||
}
|
||||
|
||||
variable "node_disk" {
|
||||
default = 20
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user