diff --git a/infra/vultr-kubernetes/cluster.tf b/infra/vultr-kubernetes/cluster.tf index 185c986..1e0700a 100644 --- a/infra/vultr-kubernetes/cluster.tf +++ b/infra/vultr-kubernetes/cluster.tf @@ -8,10 +8,10 @@ resource vultr_kubernetes athens { node_pools { # how many nodes do we want in this pool node_quantity = 1 - plan = var.cluster.pool.plan + plan = var.cluster.metapool.plan label = var.cluster.label - min_nodes = var.cluster.pool.min - max_nodes = var.cluster.pool.max + min_nodes = var.cluster.metapool.min + max_nodes = var.cluster.metapool.max } } diff --git a/infra/vultr-kubernetes/variables.tf b/infra/vultr-kubernetes/variables.tf index 31e7a94..f54b901 100644 --- a/infra/vultr-kubernetes/variables.tf +++ b/infra/vultr-kubernetes/variables.tf @@ -25,7 +25,7 @@ variable cluster { region = string label = string version = string - pool = object({ + metapool = object({ plan = string autoscale = bool min = number diff --git a/infra/vultr-kubernetes/variables.tfvars b/infra/vultr-kubernetes/variables.tfvars index 5802296..6bd258d 100644 --- a/infra/vultr-kubernetes/variables.tfvars +++ b/infra/vultr-kubernetes/variables.tfvars @@ -2,7 +2,7 @@ cluster = { region = "lax" label = "athens-cluster" version = "v1.31.2+1" - pool = { + metapool = { plan = "vc2-1c-2gb" autoscale = true min = 1 @@ -13,14 +13,14 @@ cluster = { game_servers = { namespace = "games" configs = { - minecraft = { - image = "itzg/minecraft-server" - cpu = "1000m" - mem = "2048Mi" - port = { - expose = 30808 - internal = 80 - } - } + # minecraft = { + # image = "itzg/minecraft-server" + # cpu = "1000m" + # mem = "2048Mi" + # port = { + # expose = 30808 + # internal = 80 + # } + # } } } \ No newline at end of file