change the metallb annotation to avoid replacing it every time the apply run

This commit is contained in:
2025-04-15 11:16:15 +01:00
parent a5fd5006df
commit 6fb53dace3
+6
View File
@@ -189,6 +189,12 @@ resource "kubernetes_service" "automatic_service" {
labels = {
deployment_method = "Terraform"
}
annotations = each.value.service_type == "LoadBalancer" ? {
"metallb.universe.tf/ip-allocated-from-pool" = "first-pool"
} : {}
}
spec {
selector = {