Adding variable structure for the new game_server config

This commit is contained in:
shockrah 2024-12-08 18:28:34 -08:00
parent abf3297498
commit bf812cce4c
2 changed files with 25 additions and 4 deletions

View File

@ -34,6 +34,18 @@ variable cluster {
}) })
} }
variable lab_domain { variable game_servers {
type = string type = object({
namespace = string
configs = map(object({
name = optional(string)
image = string
cpu = string
mem = string
port = number
proto = optional(string)
})
)
})
} }

View File

@ -1,4 +1,3 @@
cluster = { cluster = {
region = "lax" region = "lax"
label = "athens-cluster" label = "athens-cluster"
@ -11,4 +10,14 @@ cluster = {
} }
} }
lab_domain = "temprah-lab.xyz" game_servers = {
namespace = "games"
configs = {
nginx = {
image = "nginx:latest"
cpu = "200m"
mem = "64Mi"
port = 30808
}
}
}