From 1e3a018a3b13f6c1b1916a690d8989da81e4ab37 Mon Sep 17 00:00:00 2001 From: Peter Kurfer Date: Wed, 19 Jul 2023 20:21:17 +0200 Subject: [PATCH] refactor: re-scale cluster --- infrastructure/versions.tf | 11 ++++++++++- infrastructure/vms.auto.tfvars | 14 +++++++++++--- 2 files changed, 21 insertions(+), 4 deletions(-) diff --git a/infrastructure/versions.tf b/infrastructure/versions.tf index f32bdb8..634139d 100644 --- a/infrastructure/versions.tf +++ b/infrastructure/versions.tf @@ -1,6 +1,15 @@ terraform { required_version = ">= 0.14" + + cloud { + organization = "pkurfer" + + workspaces { + name = "hcloud-infra" + } + } + required_providers { hcloud = { source = "hetznercloud/hcloud" @@ -19,4 +28,4 @@ terraform { version = "~> 3.2.1" } } -} \ No newline at end of file +} diff --git a/infrastructure/vms.auto.tfvars b/infrastructure/vms.auto.tfvars index 7b4bfae..806ab82 100644 --- a/infrastructure/vms.auto.tfvars +++ b/infrastructure/vms.auto.tfvars @@ -1,9 +1,9 @@ k3os_workers = { - "worker1-gen4" = { + "worker1-gen5" = { backups = false node_type = "worker" - server_type = "cx31" - private_ip = "172.23.2.20" + server_type = "cx21" + private_ip = "172.23.2.23" location = "hel1" } @@ -14,6 +14,14 @@ k3os_workers = { private_ip = "172.23.2.21" location = "fsn1" } + + "worker3-gen4" = { + backups = false + node_type = "worker" + server_type = "cax21" + private_ip = "172.23.2.22" + location = "fsn1" + } } vms = {