changed the agent_nodepools to be a list

This commit is contained in:
Karim Naufal
2022-03-09 03:15:15 +01:00
parent f825142720
commit 2b7d2722c5
4 changed files with 20 additions and 16 deletions

View File

@@ -28,17 +28,21 @@ control_plane_server_type = "cpx11"
# 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 "agent-big" or "agent-small", also give them the subnet prefer.
# For single node clusters set this equal to {}
agent_nodepools = {
agent-big = {
# For single node clusters set this equal to [] or just set the counts to 0
# IMPORTANT: Once the cluster is created, you can change the count, and even set it to 0, but do not remove a nodepool from the list.
# You can add others at the end of the list if you want.
agent_nodepools = [
{
name = "agent-small",
server_type = "cpx11",
count = 2
},
{
name = "agent-large",
server_type = "cpx21",
count = 1
}
agent-small = {
server_type = "cpx11",
count = 2
}
}
]
# That will depend on how much load you want it to handle, see https://www.hetzner.com/cloud/load-balancer
load_balancer_type = "lb11"