From df359ff7ba3a0190e5e7507eae0ccf10efab3122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Wed, 3 Jul 2024 10:45:36 +0200 Subject: [PATCH] feat: change workers_count default to 1 (#16) Save some costs and resources by default. --- main-infra.tf | 6 ------ variables.tf | 18 ++++++++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/main-infra.tf b/main-infra.tf index 3910198..575a545 100644 --- a/main-infra.tf +++ b/main-infra.tf @@ -68,12 +68,6 @@ resource "hcloud_server_network" "control" { } # Worker / Agent Nodes - -variable "worker_count" { - type = number - default = 3 -} - resource "hcloud_server" "worker" { count = var.worker_count diff --git a/variables.tf b/variables.tf index d558345..9efeef6 100644 --- a/variables.tf +++ b/variables.tf @@ -1,10 +1,16 @@ -# Environement +# Environment variable "name" { - description = "Name of the environement" + description = "Name of the environment" type = string default = "dev" } +variable "worker_count" { + description = "Number of worker for the environment" + type = number + default = 1 +} + # Hetzner Cloud variable "hcloud_token" { description = "Hetzner Cloud API token" @@ -12,24 +18,24 @@ variable "hcloud_token" { sensitive = true } variable "hcloud_server_type" { - description = "Hetzner Cloud Server Type used for the environement" + description = "Hetzner Cloud Server Type used for the environment" type = string default = "cpx21" } variable "hcloud_location" { - description = "Hetzner Cloud Location used for the environement" + description = "Hetzner Cloud Location used for the environment" type = string default = "fsn1" } variable "hcloud_image" { - description = "Hetzner Cloud Image used for the environement" + description = "Hetzner Cloud Image used for the environment" type = string default = "ubuntu-24.04" } # K3S variable "k3s_channel" { - description = "k3S channel used for the environement" + description = "k3S channel used for the environment" type = string default = "stable" }