{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes-sigs/aws-alb-ingress-controller/issues/417","repository_url":"https://api.github.com/repos/kubernetes-sigs/aws-alb-ingress-controller","labels_url":"https://api.github.com/repos/kubernetes-sigs/aws-alb-ingress-controller/issues/417/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes-sigs/aws-alb-ingress-controller/issues/417/comments","events_url":"https://api.github.com/repos/kubernetes-sigs/aws-alb-ingress-controller/issues/417/events","html_url":"https://github.com/kubernetes-sigs/aws-alb-ingress-controller/issues/417","id":335515147,"node_id":"MDU6SXNzdWUzMzU1MTUxNDc=","number":417,"title":"ingress rule always point to first listed service in rules","user":{"login":"amit-kansal","id":19466638,"node_id":"MDQ6VXNlcjE5NDY2NjM4","avatar_url":"https://avatars0.githubusercontent.com/u/19466638?v=4","gravatar_id":"","url":"https://api.github.com/users/amit-kansal","html_url":"https://github.com/amit-kansal","followers_url":"https://api.github.com/users/amit-kansal/followers","following_url":"https://api.github.com/users/amit-kansal/following{/other_user}","gists_url":"https://api.github.com/users/amit-kansal/gists{/gist_id}","starred_url":"https://api.github.com/users/amit-kansal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amit-kansal/subscriptions","organizations_url":"https://api.github.com/users/amit-kansal/orgs","repos_url":"https://api.github.com/users/amit-kansal/repos","events_url":"https://api.github.com/users/amit-kansal/events{/privacy}","received_events_url":"https://api.github.com/users/amit-kansal/received_events","type":"User","site_admin":false},"labels":[{"id":575209608,"node_id":"MDU6TGFiZWw1NzUyMDk2MDg=","url":"https://api.github.com/repos/kubernetes-sigs/aws-alb-ingress-controller/labels/reviewed/won't%20fix","name":"reviewed/won't fix","color":"cccccc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-06-25T18:19:52Z","updated_at":"2018-07-10T22:01:44Z","closed_at":null,"author_association":"NONE","body":"I am new to setting up ingress-controller. I am facing problem to access multiple services using single ALB DNS created using nodeports type service.\r\n\r\nWith below config, I am only able to access first listed service using the created ALB DNS. If I am appending path to DNS url then its not redirecting me to the other services. \r\n\r\nExample -\r\nstandalone dns url => working (pointing to first listed service tes1)\r\ndns url/s1 => not pointing to any service(404 error)\r\ndns url/s2 => not pointing to any service(404 error)\r\n\r\nMy Services -\r\n```\r\nNAME             TYPE       CLUSTER-IP       EXTERNAL-IP   PORT(S)        AGE\r\ntest1   NodePort   172.20.72.188    <none>        80:31017/TCP   53m\r\ntest2   NodePort   172.20.114.180   <none>        80:31487/TCP   54m\r\n```\r\n\r\nIngress Rule file -\r\n\r\n```\r\napiVersion: extensions/v1beta1\r\nkind: Ingress\r\nmetadata:\r\n  name: echoserver\r\n  namespace: echoserver\r\n  annotations:\r\n    #kubernetes.io/ingress.class: alb\r\n    #nginx.ingress.kubernetes.io/rewrite-target: /\r\n    alb.ingress.kubernetes.io/scheme: internet-facing\r\n    #alb.ingress.kubernetes.io/listen-ports: '[{\"HTTP\": 80, \"HTTPS\": 443}, {\"HTTP\": 8080, \"HTTPS\": 443}]'\r\n    alb.ingress.kubernetes.io/subnets: subnet-f97d1680,subnet-ba1683f1\r\n    alb.ingress.kubernetes.io/security-groups: alb.ingress.kubernetes.io\r\n    alb.ingress.kubernetes.io/tags: Environment=dev,Team=test\r\nspec:\r\n  rules:\r\n  - http:\r\n      paths:\r\n      - path: /s1\r\n        backend:\r\n          serviceName: test1\r\n          servicePort: 80\r\n      - path: /s2\r\n        backend:\r\n          serviceName: test2\r\n          servicePort: 80\r\n\r\n```\r\n```\r\nkubectl describe ingress -n echoserver\r\nName:             echoserver\r\nNamespace:        echoserver\r\nAddress:          ******************************************************\r\nDefault backend:  default-http-backend:80 (10.0.57.177:8080)\r\nRules:\r\n  Host  Path  Backends\r\n  ----  ----  --------\r\n  *\r\n        /s1   test1:80 (<none>)\r\n        /s2   test2:80 (<none>)\r\nAnnotations:\r\n  alb.ingress.kubernetes.io/scheme:                  internet-facing\r\n  alb.ingress.kubernetes.io/security-groups:         alb.ingress.kubernetes.io\r\n  alb.ingress.kubernetes.io/subnets:                 subnet-f97d1680,subnet-ba1683f1\r\n  alb.ingress.kubernetes.io/tags:                    Environment=dev,Team=test\r\n  kubectl.kubernetes.io/last-applied-configuration:  {\"apiVersion\":\"extensions/v1beta1\",\"kind\":\"Ingress\",\"metadata\":{\"annotations\":{\"alb.ingress.kubernetes.io/scheme\":\"internet-facing\",\"alb.ingress.kubernetes.io/security-groups\":\"alb.ingress.kubernetes.io\",\"alb.ingress.kubernetes.io/subnets\":\"subnet-f97d1680,subnet-ba1683f1\",\"alb.ingress.kubernetes.io/tags\":\"Environment=dev,Team=test\"},\"name\":\"echoserver\",\"namespace\":\"echoserver\"},\"spec\":{\"rules\":[{\"http\":{\"paths\":[{\"backend\":{\"serviceName\":\"test1\",\"servicePort\":80},\"path\":\"/s1\"},{\"backend\":{\"serviceName\":\"test2\",\"servicePort\":80},\"path\":\"/s2\"}]}}]}}\r\n```\r\n```\r\nkubectl get ingress -n echoserver\r\nNAME         HOSTS     ADDRESS            PORTS     AGE\r\nechoserver   *         dtekscluste-e...   80        1h\r\n```\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes-sigs/aws-alb-ingress-controller/issues/comments/403980303","html_url":"https://github.com/kubernetes-sigs/aws-alb-ingress-controller/issues/417#issuecomment-403980303","issue_url":"https://api.github.com/repos/kubernetes-sigs/aws-alb-ingress-controller/issues/417","id":403980303,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzk4MDMwMw==","user":{"login":"mariomerco","id":7386479,"node_id":"MDQ6VXNlcjczODY0Nzk=","avatar_url":"https://avatars2.githubusercontent.com/u/7386479?v=4","gravatar_id":"","url":"https://api.github.com/users/mariomerco","html_url":"https://github.com/mariomerco","followers_url":"https://api.github.com/users/mariomerco/followers","following_url":"https://api.github.com/users/mariomerco/following{/other_user}","gists_url":"https://api.github.com/users/mariomerco/gists{/gist_id}","starred_url":"https://api.github.com/users/mariomerco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariomerco/subscriptions","organizations_url":"https://api.github.com/users/mariomerco/orgs","repos_url":"https://api.github.com/users/mariomerco/repos","events_url":"https://api.github.com/users/mariomerco/events{/privacy}","received_events_url":"https://api.github.com/users/mariomerco/received_events","type":"User","site_admin":false},"created_at":"2018-07-10T22:01:44Z","updated_at":"2018-07-10T22:01:44Z","author_association":"NONE","body":"Hello, thank you, @ehbello! I was experiencing the same issue and just had to add the wildcard to it."}}
{"actor":{"display_login":"mariomerco"}}