Aws-load-balancer-controller: Ingress with routes always falls back to default rule.

Created on 11 Jul 2018  路  5Comments  路  Source: kubernetes-sigs/aws-load-balancer-controller

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: ingress
namespace: default
annotations:
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/subnets: subnet-1, subnet-2
alb.ingress.kubernetes.io/security-groups: sg-1
alb.ingress.kubernetes.io/tags: Environment=dev,Team=test
spec:
rules:

  • host: abc.net
    http:
    paths:

    • path: /

      backend:

      serviceName: jena-fu

      servicePort: 3030

    • path: /svc2

      backend:

      serviceName: svc2

      servicePort: 8080

When I hit abc.net, I am able to access jena-fu service, but when I hit abc.net/svc2, I am not able to access svc2. I tried /svc2* as well, same result.

triagneeds-information

Most helpful comment

@ishaannarang The list of paths are additive. The first path that is found in your list that matches will be used for your route. If you change the order of paths it will work.

All 5 comments

i'm also seeing this behavior. it looks as though the first path + service specified takes priority and subsequent services are unaccessible.

Have the same issue, but with host based routing on internal ALB. As soon as I remove the path part from ALB using AWS console, everything works properly.

@ishaannarang The list of paths are additive. The first path that is found in your list that matches will be used for your route. If you change the order of paths it will work.

@ishaannarang please confirm if swapping the paths solves your problem

it worked !!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghostsquad picture ghostsquad  路  4Comments

gibsster picture gibsster  路  5Comments

mgoodness picture mgoodness  路  5Comments

amalagaura picture amalagaura  路  4Comments

brylex418 picture brylex418  路  4Comments