Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error endpoints "forward-tg" not found with alb.ingress.kubernetes.io/actions.${action-name} #3933

Open
manushi-bcsn opened this issue Nov 6, 2024 · 2 comments
Labels
triage/needs-information Indicates an issue needs more information in order to work on it.

Comments

@manushi-bcsn
Copy link

I have added a below annotations in my ingress file.

K8s version: 1.29
ALB controller is installed using helm chart.

alb.ingress.kubernetes.io/actions.forward-tg: |
{"type":"forward","targetGroupARN":"ARN of target group"}

Also I have used it in ingress spec.
spec:
rules:

  • host: abc.com
    http:
    paths:
    • backend:
      service:
      name: forward-tg
      port:
      name: use-annotation
      path: /bmw
      pathType: Prefix

But it is showing error like as below:

error: forward-tg:use-annotation (<error: endpoints "forward-tg" not found>)

Just to add ALB and my EC2 both are in same VPC and also EC2 is in public subnet.
I have checked to add rule manually in ALB and it is working properly.

I don't know what's the issue with ingress that it could not find my target group ARN.

Can anyone please help me with this?

@shraddhabang
Copy link
Collaborator

shraddhabang commented Nov 6, 2024

@manushi-bcsn Can you share your full manifest again? It looks like a formatting error.
I tried creating an ingress using following manifest and it worked for me.

# Ingress
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  namespace: xxx
  name: ig-xxx
  annotations:
    alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 443}]'
    alb.ingress.kubernetes.io/actions.forward-tg: |
      {"type":"forward","targetGroupARN": "arn:aws:elasticloadbalancing:us-east-1:xxxxxxxxx:targetgroup/dssdde/xxxx"}
spec:
  ingressClassName: alb
  rules:
    - host: abc.com
    - http:
        paths:
          - path: /bmw
            pathType: Prefix
            backend:
              service:
                name: forward-tg
                port:
                  name: use-annotation

@shraddhabang shraddhabang added the triage/needs-information Indicates an issue needs more information in order to work on it. label Nov 6, 2024
@manushi-bcsn
Copy link
Author

@shraddhabang

Thanks for the quick reply.
I'll try in my newly created cluster and if it's still not work then I'll let you know.
I found out that something is fishy in our cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/needs-information Indicates an issue needs more information in order to work on it.
Projects
None yet
Development

No branches or pull requests

2 participants