diff --git a/infra/vultr-kubernetes/variables.tf b/infra/vultr-kubernetes/variables.tf index 50c2fea..0e1ba9a 100644 --- a/infra/vultr-kubernetes/variables.tf +++ b/infra/vultr-kubernetes/variables.tf @@ -34,6 +34,18 @@ variable cluster { }) } -variable lab_domain { - type = string +variable game_servers { + type = object({ + namespace = string + configs = map(object({ + name = optional(string) + image = string + cpu = string + mem = string + port = number + proto = optional(string) + }) + ) + }) } + diff --git a/infra/vultr-kubernetes/variables.tfvars b/infra/vultr-kubernetes/variables.tfvars index edda644..f42af49 100644 --- a/infra/vultr-kubernetes/variables.tfvars +++ b/infra/vultr-kubernetes/variables.tfvars @@ -1,4 +1,3 @@ - cluster = { region = "lax" 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 + } + } +} \ No newline at end of file