{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/ingress-nginx/issues/2318","repository_url":"https://api.github.com/repos/kubernetes/ingress-nginx","labels_url":"https://api.github.com/repos/kubernetes/ingress-nginx/issues/2318/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/ingress-nginx/issues/2318/comments","events_url":"https://api.github.com/repos/kubernetes/ingress-nginx/issues/2318/events","html_url":"https://github.com/kubernetes/ingress-nginx/issues/2318","id":312507951,"node_id":"MDU6SXNzdWUzMTI1MDc5NTE=","number":2318,"title":"Support service-name for default backend","user":{"login":"Stono","id":1486729,"node_id":"MDQ6VXNlcjE0ODY3Mjk=","avatar_url":"https://avatars2.githubusercontent.com/u/1486729?v=4","gravatar_id":"","url":"https://api.github.com/users/Stono","html_url":"https://github.com/Stono","followers_url":"https://api.github.com/users/Stono/followers","following_url":"https://api.github.com/users/Stono/following{/other_user}","gists_url":"https://api.github.com/users/Stono/gists{/gist_id}","starred_url":"https://api.github.com/users/Stono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stono/subscriptions","organizations_url":"https://api.github.com/users/Stono/orgs","repos_url":"https://api.github.com/users/Stono/repos","events_url":"https://api.github.com/users/Stono/events{/privacy}","received_events_url":"https://api.github.com/users/Stono/received_events","type":"User","site_admin":false},"labels":[{"id":778120459,"node_id":"MDU6TGFiZWw3NzgxMjA0NTk=","url":"https://api.github.com/repos/kubernetes/ingress-nginx/labels/lifecycle/stale","name":"lifecycle/stale","color":"795548","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-09T12:19:29Z","updated_at":"2018-11-15T13:49:06Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hey, \r\nWhen using ingress-nginx with service meshes such as [istio](https://github.com/istio/istio), outbound connections need to use a service name rather than the pod ip/port.\r\n\r\nThis works fine when creating ingresses as we can use the `service-upstream` annotation, however we need to have the same thing for the `default-backend-service` too.\r\n\r\nAt the moment; when using `--default-backend-service=$(POD_NAMESPACE)/default-http-backend`, nginx will resolve these to the pod `ip:port` combinations, and this in turn results in the side car throwing 404 errors:\r\n\r\n```\r\nroot@ingress-nginx-internal-controller-59d9d676df-jctw9:/# curl -kvL 10.202.2.7:8080\r\n* Rebuilt URL to: 10.202.2.7:8080/\r\n*   Trying 10.202.2.7...\r\n* TCP_NODELAY set\r\n* Connected to 10.202.2.7 (10.202.2.7) port 8080 (#0)\r\n> GET / HTTP/1.1\r\n> Host: 10.202.2.7:8080\r\n> User-Agent: curl/7.52.1\r\n> Accept: */*\r\n>\r\n< HTTP/1.1 404 Not Found\r\n< date: Mon, 09 Apr 2018 12:18:40 GMT\r\n< server: envoy\r\n< content-length: 0\r\n<\r\n* Curl_http_done: called premature == 0\r\n* Connection #0 to host 10.202.2.7 left intact\r\n```\r\n\r\nWhen connecting using the service, you get the correct response:\r\n\r\n```\r\nroot@ingress-nginx-internal-controller-59d9d676df-jctw9:/# curl -kv default-http-backend\r\n* Rebuilt URL to: default-http-backend/\r\n*   Trying 10.192.68.46...\r\n* TCP_NODELAY set\r\n* Connected to default-http-backend (10.192.68.46) port 80 (#0)\r\n> GET / HTTP/1.1\r\n> Host: default-http-backend\r\n> User-Agent: curl/7.52.1\r\n> Accept: */*\r\n>\r\n< HTTP/1.1 404 Not Found\r\n< Date: Mon, 09 Apr 2018 12:19:16 GMT\r\n< Content-Length: 21\r\n< Content-Type: text/plain; charset=utf-8\r\n<\r\n* Curl_http_done: called premature == 0\r\n* Connection #0 to host default-http-backend left intact\r\ndefault backend - 404\r\n```\r\n\r\n**Proposal**\r\nAdd `--default-backend-service-upstream=true`"},"comment":{"url":"https://api.github.com/repos/kubernetes/ingress-nginx/issues/comments/439045684","html_url":"https://github.com/kubernetes/ingress-nginx/issues/2318#issuecomment-439045684","issue_url":"https://api.github.com/repos/kubernetes/ingress-nginx/issues/2318","id":439045684,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTA0NTY4NA==","user":{"login":"fejta-bot","id":30488982,"node_id":"MDQ6VXNlcjMwNDg4OTgy","avatar_url":"https://avatars1.githubusercontent.com/u/30488982?v=4","gravatar_id":"","url":"https://api.github.com/users/fejta-bot","html_url":"https://github.com/fejta-bot","followers_url":"https://api.github.com/users/fejta-bot/followers","following_url":"https://api.github.com/users/fejta-bot/following{/other_user}","gists_url":"https://api.github.com/users/fejta-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/fejta-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fejta-bot/subscriptions","organizations_url":"https://api.github.com/users/fejta-bot/orgs","repos_url":"https://api.github.com/users/fejta-bot/repos","events_url":"https://api.github.com/users/fejta-bot/events{/privacy}","received_events_url":"https://api.github.com/users/fejta-bot/received_events","type":"User","site_admin":false},"created_at":"2018-11-15T13:49:06Z","updated_at":"2018-11-15T13:49:06Z","author_association":"NONE","body":"Stale issues rot after 30d of inactivity.\nMark the issue as fresh with `/remove-lifecycle rotten`.\nRotten issues close after an additional 30d of inactivity.\n\nIf this issue is safe to close now please do so with `/close`.\n\nSend feedback to sig-testing, kubernetes/test-infra and/or [fejta](https://github.com/fejta).\n/lifecycle rotten"}}
{"actor":{"display_login":"fejta-bot"}}