From 769d2e4e2e334118bf5b8d729e4ab8fe88174463 Mon Sep 17 00:00:00 2001 From: Karim Naufal Date: Sun, 27 Feb 2022 10:51:41 +0100 Subject: [PATCH] tweaked readme --- terraform.tfvars.example | 18 +++++++----------- variables.tf | 1 + 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/terraform.tfvars.example b/terraform.tfvars.example index 949ed81..17cf1f7 100644 --- a/terraform.tfvars.example +++ b/terraform.tfvars.example @@ -9,28 +9,24 @@ private_key = "/home/username/.ssh/id_ed25519" # For Hetzner server types see https://www.hetzner.com/cloud location = "fsn1" # change to `ash` for us-east Ashburn, Virginia location network_region = "eu-central" # change to `us-east` if location is ash -network_ipv4_range = "10.0.0.0/8" + +# It's best to leave the network range as is, unless you know what you are doing. The default is "10.0.0.0/8". +# network_ipv4_range = "10.0.0.0/8" + +# You can have up to as many subnets as you want (preferably if the form of 10.X.0.0/16), their primary use is to logically separate the nodes. As for the agent nodepools, below is just an example, if you do not want nodepools, just use one, and change the name to what you want, it need not be "big" or "small", also give them the subnet you want, or keep the default. network_ipv4_subnets = { control_plane = "10.1.0.0/16" subnet1 = "10.2.0.0/16" subnet2 = "10.3.0.0/16" -} - -control_plane_server_type = "cpx11" -load_balancer_type = "lb11" - -# At least 3 server nodes is recommended for HA, otherwise you need to turn off automatic upgrade (see ReadMe). -control_plane_count = 3 - agent_nodepools = { big = { - server_type = "cpx31", + server_type = "cpx21", count = 1, subnet = "subnet1", } small = { - server_type = "cpx21", + server_type = "cpx11", count = 2, subnet = "subnet2", } diff --git a/variables.tf b/variables.tf index ab836e0..58bdd0a 100644 --- a/variables.tf +++ b/variables.tf @@ -33,6 +33,7 @@ variable "network_region" { variable "network_ipv4_range" { description = "Default IPv4 range for network" type = string + default = "10.0.0.0/8" } variable "network_ipv4_subnets" {