Skip to content

Commit

Permalink
feat: change workers_count default to 1 (#16)
Browse files Browse the repository at this point in the history
Save some costs and resources by default.
  • Loading branch information
apricote authored Jul 3, 2024
1 parent cd121bf commit df359ff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 0 additions & 6 deletions main-infra.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
18 changes: 12 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,35 +1,41 @@
# 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"
type = string
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"
}

0 comments on commit df359ff

Please sign in to comment.