separating game and admin service node pools with pods and what not
Some checks failed
Ansible Linting / ansible-lint (push) Failing after 3s
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 14s

This commit is contained in:
2024-12-19 01:28:44 -08:00
parent ac11487feb
commit f2c4506245
5 changed files with 55 additions and 33 deletions

View File

@@ -1,4 +1,5 @@
resource kubernetes_namespace admin-servers {
count = length(var.admin_services.configs) > 0 ? 1 : 0
metadata {
name = var.admin_services.namespace
}
@@ -15,6 +16,9 @@ resource kubernetes_pod admin {
}
}
spec {
node_selector = {
NodeType = var.admin_services.namespace
}
container {
image = each.value.image
name = coalesce(each.value.name, each.key)