diff --git a/main.tf b/main.tf index 3cc583e..cf25ab1 100644 --- a/main.tf +++ b/main.tf @@ -198,3 +198,14 @@ resource "helm_release" "traefik" { output "traefik_lb_ip" { value = var.traefik_lb_ip } + +# Adopt Traefik into the state again (lost when Consul restarted) +import { + to = kubernetes_namespace.traefik + id = "traefik" +} + +import { + to = helm_release.traefik + id = "traefik/traefik" +}