diff --git a/main.tf b/main.tf index 4d12561..ed3591e 100644 --- a/main.tf +++ b/main.tf @@ -16,7 +16,7 @@ resource "hcloud_network" "k3s" { resource "hcloud_network_subnet" "k3s" { network_id = hcloud_network.k3s.id type = "cloud" - network_zone = "eu-central" + network_zone = var.network_region ip_range = "10.0.0.0/16" } diff --git a/terraform.tfvars.example b/terraform.tfvars.example index a0d9e1a..6cf5b54 100644 --- a/terraform.tfvars.example +++ b/terraform.tfvars.example @@ -7,7 +7,8 @@ private_key = "/home/username/.ssh/id_ed25519" # These can be customized, or left with the default values # For Hetzner locations see https://docs.hetzner.com/general/others/data-centers-and-connection/ # For Hetzner server types see https://www.hetzner.com/cloud -location = "fsn1" +location = "fsn1" # change to `ash` for us-east Ashburn, Virginia location +network_region = "eu-central" # change to `us-east` if location is ash agent_server_type = "cpx21" control_plane_server_type = "cpx11" lb_server_type = "lb11" @@ -23,4 +24,4 @@ agents_num = 2 # If you choose to keep the default of "false", you can always use ArgoCD to monitor the CSI and CCM manifest for new releases, # that is probably the more "vanilla" option to keep these components always updated. # hetzner_ccm_containers_latest = true -# hetzner_csi_containers_latest = true \ No newline at end of file +# hetzner_csi_containers_latest = true diff --git a/variables.tf b/variables.tf index 81c7ea9..51dc3bd 100644 --- a/variables.tf +++ b/variables.tf @@ -19,6 +19,11 @@ variable "location" { type = string } +variable "network_region" { + description = "Default region for network" + type = string +} + variable "control_plane_server_type" { description = "Default control plane server type" type = string