{"action":"created","issue":{"url":"https://api.github.com/repos/istio/istio/issues/19887","repository_url":"https://api.github.com/repos/istio/istio","labels_url":"https://api.github.com/repos/istio/istio/issues/19887/labels{/name}","comments_url":"https://api.github.com/repos/istio/istio/issues/19887/comments","events_url":"https://api.github.com/repos/istio/istio/issues/19887/events","html_url":"https://github.com/istio/istio/issues/19887","id":544665600,"node_id":"MDU6SXNzdWU1NDQ2NjU2MDA=","number":19887,"title":"TCP route based on matched port doesn't seem to be working.","user":{"login":"nerusnayleinad","id":19745725,"node_id":"MDQ6VXNlcjE5NzQ1NzI1","avatar_url":"https://avatars2.githubusercontent.com/u/19745725?v=4","gravatar_id":"","url":"https://api.github.com/users/nerusnayleinad","html_url":"https://github.com/nerusnayleinad","followers_url":"https://api.github.com/users/nerusnayleinad/followers","following_url":"https://api.github.com/users/nerusnayleinad/following{/other_user}","gists_url":"https://api.github.com/users/nerusnayleinad/gists{/gist_id}","starred_url":"https://api.github.com/users/nerusnayleinad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nerusnayleinad/subscriptions","organizations_url":"https://api.github.com/users/nerusnayleinad/orgs","repos_url":"https://api.github.com/users/nerusnayleinad/repos","events_url":"https://api.github.com/users/nerusnayleinad/events{/privacy}","received_events_url":"https://api.github.com/users/nerusnayleinad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2020-01-02T17:12:00Z","updated_at":"2020-01-03T09:34:28Z","closed_at":null,"author_association":"NONE","body":"I am testing the following example from your website:\r\n\r\n```\r\napiVersion: networking.istio.io/v1alpha3\r\nkind: VirtualService\r\nmetadata:\r\n  name: server-vs\r\nspec:\r\n  hosts:\r\n  - server.istio.svc.cluster.local\r\n  tcp:\r\n  - match:\r\n    - port: 12345\r\n    route:\r\n    - destination:\r\n        host: nginx.istio.svc.cluster.local\r\n        port:\r\n          number: 80\r\n```\r\nAnd this is the explanation:\r\n\r\n> Describes match conditions and actions for routing TCP traffic. The following routing rule forwards traffic arriving at port 27017 for mongo.prod.svc.cluster.local to another Mongo server on port 5555.\r\n\r\nWhat I have change are the service names and ports. But have not added or removed anything. Instead of `mongo.prod` it's `server.istio`, which based on the port match, would send the traffic to `nginx.istio` service.\r\n\r\nNote: `server.istio` is a service pointing to `nginx` and `apache` backeds, while `nginx.istio` only points to `nginx` backends.\r\n\r\nSo, if I'd curl `server` on port 12345, I should always get nginx serving this requests. But if I do that, Envoy times out:\r\n\r\n```\r\n/ # curl server:12345\r\ncurl: (56) Recv failure: Connection reset by peer\r\n```\r\nThen I thought may be it should be on the port that `server.istio` is actually expecting to get requests, so I changed `server` service port to 12345. But now I just get 50% serving `nginx` and 50% `apache`.\r\n\r\nIs this feature actually working? Seems to be pretty simple and it is not working. Am I doing something wrong?\r\n\r\nI am using Istio 1.4.2 and k8s 1.16.4.\r\n"},"comment":{"url":"https://api.github.com/repos/istio/istio/issues/comments/570517596","html_url":"https://github.com/istio/istio/issues/19887#issuecomment-570517596","issue_url":"https://api.github.com/repos/istio/istio/issues/19887","id":570517596,"node_id":"MDEyOklzc3VlQ29tbWVudDU3MDUxNzU5Ng==","user":{"login":"hzxuzhonghu","id":13374016,"node_id":"MDQ6VXNlcjEzMzc0MDE2","avatar_url":"https://avatars3.githubusercontent.com/u/13374016?v=4","gravatar_id":"","url":"https://api.github.com/users/hzxuzhonghu","html_url":"https://github.com/hzxuzhonghu","followers_url":"https://api.github.com/users/hzxuzhonghu/followers","following_url":"https://api.github.com/users/hzxuzhonghu/following{/other_user}","gists_url":"https://api.github.com/users/hzxuzhonghu/gists{/gist_id}","starred_url":"https://api.github.com/users/hzxuzhonghu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hzxuzhonghu/subscriptions","organizations_url":"https://api.github.com/users/hzxuzhonghu/orgs","repos_url":"https://api.github.com/users/hzxuzhonghu/repos","events_url":"https://api.github.com/users/hzxuzhonghu/events{/privacy}","received_events_url":"https://api.github.com/users/hzxuzhonghu/received_events","type":"User","site_admin":false},"created_at":"2020-01-03T09:34:27Z","updated_at":"2020-01-03T09:34:27Z","author_association":"MEMBER","body":"Show your confifg dump of the outbound listener and cluster"}}
{"actor":{"display_login":"hzxuzhonghu"}}