Skip to content

Lack of ExternalName Service support #1223

@adw1n

Description

@adw1n

Adding ExternalName Service causes this error:

E0415 10:39:34.719028       1 controller.go:217] kubebuilder/controller "msg"="Reconciler error" "error"="failed to reconcile targetGroups due to failed to reconcile targetGroup targets due to Unable to find service endpoints for 2048-game/apple-service: no object matching key \"2048-game/apple-service\" in local store"  "controller"="alb-ingress-controller" "request"={"Namespace":"2048-game","Name":"2048-ingress"}

Reproducible test case:

  1. Follow https://docs.aws.amazon.com/eks/latest/userguide/alb-ingress.html walkthrough but use ip traffic mode
  2. kubectl apply -f https://raw.githubusercontent.com/cornellanthony/nlb-nginxIngress-eks/master/apple.yaml
  3. kubectl apply -f apple-proxy.yaml
# apple-proxy.yaml
kind: Service
apiVersion: v1
metadata:
  name: apple-service
  namespace: 2048-game
  labels:
    app: myexternal
spec:
  type: ExternalName
  externalName: apple-service.default.svc.cluster.local
  ports:
    - port: 5678
  1. kubectl edit ingress/2048-ingress -n 2048-game and add new path:
          - path: /apple
            backend:
              serviceName: "apple-service"
              servicePort: 5678

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions