alibaba / alibaba-load-balancer-controller

Apache License 2.0
25 stars 9 forks source link

Reconcile error: instance cannot be found #8

Closed joeybenamy closed 3 months ago

joeybenamy commented 3 months ago

We are experiencing this error in me-central-1 region. Any suggestions?

E0731 14:02:43.923999       1 controller.go:329]  "msg"="Reconciler error" "error"="the corresponding instance cannot be found;region=me-central-1,vpc=vpc-XXXX,ip=A.B.C.D" "controller"="alb-ingress-controller" "name"="alb-external" "namespace"="" "object"={"name":"alb-external"} "reconcileID"="YYYY"

Here's our albconfigs (created by terraform):

resource "kubernetes_manifest" "alb_external_config" {
  count = length(var.alicloud_vswitch_ids) > 0 ? 1 : 0
  manifest = {
    apiVersion = "alibabacloud.com/v1"
    kind       = "AlbConfig"
    metadata = {
      name = "alb-external"
    }
    spec = {
      config = {
        name        = "alb"
        addressType = "Internet"
        zoneMappings = [
          {
            vSwitchId = var.alicloud_vswitch_ids[0]
          },
          {
            vSwitchId = var.alicloud_vswitch_ids[1]
          }
        ]
      }
    }
  }
}

resource "kubernetes_manifest" "alb_internal_config" {
  count = length(var.alicloud_vswitch_ids) > 0 ? 1 : 0
  manifest = {
    apiVersion = "alibabacloud.com/v1"
    kind       = "AlbConfig"
    metadata = {
      name = "alb-internal"
    }
    spec = {
      config = {
        name        = "alb"
        addressType = "Intranet"
        zoneMappings = [
          {
            vSwitchId = var.alicloud_vswitch_ids[0]
          },
          {
            vSwitchId = var.alicloud_vswitch_ids[1]
          }
        ]
      }
    }
  }
}