infrastructure/k8s.tjo.cloud/modules/cluster-components/main.tf
Tine c0254f1bb4
Some checks failed
/ lint (push) Failing after 12m52s
feat: monitoring fixes
2024-07-27 16:08:21 +02:00

20 lines
403 B
HCL

resource "kubernetes_namespace" "tjo-cloud" {
metadata {
name = "tjo-cloud"
}
}
resource "kubernetes_manifest" "loadbalancer_ips" {
for_each = var.loadbalancer_ips
manifest = {
apiVersion = "cilium.io/v2alpha1"
kind = "CiliumLoadBalancerIPPool"
metadata = {
name = each.key
}
spec = {
blocks = [for ip in each.value.ipv4 : { start : ip }]
}
}
}