change the metallb annotation to avoid replacing it every time the apply run
This commit is contained in:
@@ -189,6 +189,12 @@ resource "kubernetes_service" "automatic_service" {
|
|||||||
labels = {
|
labels = {
|
||||||
deployment_method = "Terraform"
|
deployment_method = "Terraform"
|
||||||
}
|
}
|
||||||
|
annotations = each.value.service_type == "LoadBalancer" ? {
|
||||||
|
"metallb.universe.tf/ip-allocated-from-pool" = "first-pool"
|
||||||
|
} : {}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
spec {
|
spec {
|
||||||
selector = {
|
selector = {
|
||||||
|
|||||||
Reference in New Issue
Block a user