diff --git a/infra/vultr-kubernetes/game-server.tf b/infra/vultr-kubernetes/game-server.tf index 4776f1a..30cf656 100644 --- a/infra/vultr-kubernetes/game-server.tf +++ b/infra/vultr-kubernetes/game-server.tf @@ -28,6 +28,10 @@ resource kubernetes_pod game { container_port = each.value.port.internal protocol = coalesce(each.value.proto, "TCP") } + env { + name = "EULA" + value = "TRUE" + } } } } diff --git a/infra/vultr-kubernetes/test-nginx.tf b/infra/vultr-kubernetes/test-nginx.tf deleted file mode 100644 index 89caeae..0000000 --- a/infra/vultr-kubernetes/test-nginx.tf +++ /dev/null @@ -1,64 +0,0 @@ -# Here we create a super simple pod that we can reach via IP -# Using nginx as the service to expose - -locals { - sanity = { - namespace = "sanity" - service = "web-health" - port = 30808 - } -} - -resource kubernetes_namespace sanity { - metadata { - name = local.sanity.namespace - } -} - -resource kubernetes_pod nginx { - metadata { - name = local.sanity.service - labels = { - app = local.sanity.service - } - } - spec { - container { - image = "nginx:latest" - name = "nginx" - resources { - limits = { - cpu = "200m" - memory = "64Mi" - } - } - liveness_probe { - http_get { - path = "/" - port = 80 - } - - initial_delay_seconds = 30 - period_seconds = 30 - } - } - } -} - -resource kubernetes_service nginx { - metadata { - name = local.sanity.service - } - spec { - selector = { - app = local.sanity.service - } - port { - port = 8080 - target_port = 80 - node_port = local.sanity.port - } - type = "NodePort" - } -} - diff --git a/infra/vultr-kubernetes/variables.tfvars b/infra/vultr-kubernetes/variables.tfvars index fee2267..5802296 100644 --- a/infra/vultr-kubernetes/variables.tfvars +++ b/infra/vultr-kubernetes/variables.tfvars @@ -13,10 +13,10 @@ cluster = { game_servers = { namespace = "games" configs = { - nginx = { - image = "nginx:latest" - cpu = "200m" - mem = "64Mi" + minecraft = { + image = "itzg/minecraft-server" + cpu = "1000m" + mem = "2048Mi" port = { expose = 30808 internal = 80