Renaming default pool var
Some checks failed
Ansible Linting / ansible-lint (push) Failing after 4s
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 13s

This commit is contained in:
shockrah 2024-12-16 00:05:08 -08:00
parent 7a41d033b5
commit 6d642a7359
3 changed files with 14 additions and 14 deletions

View File

@ -8,10 +8,10 @@ resource vultr_kubernetes athens {
node_pools { node_pools {
# how many nodes do we want in this pool # how many nodes do we want in this pool
node_quantity = 1 node_quantity = 1
plan = var.cluster.pool.plan plan = var.cluster.metapool.plan
label = var.cluster.label label = var.cluster.label
min_nodes = var.cluster.pool.min min_nodes = var.cluster.metapool.min
max_nodes = var.cluster.pool.max max_nodes = var.cluster.metapool.max
} }
} }

View File

@ -25,7 +25,7 @@ variable cluster {
region = string region = string
label = string label = string
version = string version = string
pool = object({ metapool = object({
plan = string plan = string
autoscale = bool autoscale = bool
min = number min = number

View File

@ -2,7 +2,7 @@ cluster = {
region = "lax" region = "lax"
label = "athens-cluster" label = "athens-cluster"
version = "v1.31.2+1" version = "v1.31.2+1"
pool = { metapool = {
plan = "vc2-1c-2gb" plan = "vc2-1c-2gb"
autoscale = true autoscale = true
min = 1 min = 1
@ -13,14 +13,14 @@ cluster = {
game_servers = { game_servers = {
namespace = "games" namespace = "games"
configs = { configs = {
minecraft = { # minecraft = {
image = "itzg/minecraft-server" # image = "itzg/minecraft-server"
cpu = "1000m" # cpu = "1000m"
mem = "2048Mi" # mem = "2048Mi"
port = { # port = {
expose = 30808 # expose = 30808
internal = 80 # internal = 80
} # }
} # }
} }
} }