{"action":"opened","issue":{"url":"https://api.github.com/repos/istio/istio/issues/9529","repository_url":"https://api.github.com/repos/istio/istio","labels_url":"https://api.github.com/repos/istio/istio/issues/9529/labels{/name}","comments_url":"https://api.github.com/repos/istio/istio/issues/9529/comments","events_url":"https://api.github.com/repos/istio/istio/issues/9529/events","html_url":"https://github.com/istio/istio/issues/9529","id":373872302,"node_id":"MDU6SXNzdWUzNzM4NzIzMDI=","number":9529,"title":"AWS EKS Istio routing does not work","user":{"login":"dshmatov","id":7620690,"node_id":"MDQ6VXNlcjc2MjA2OTA=","avatar_url":"https://avatars3.githubusercontent.com/u/7620690?v=4","gravatar_id":"","url":"https://api.github.com/users/dshmatov","html_url":"https://github.com/dshmatov","followers_url":"https://api.github.com/users/dshmatov/followers","following_url":"https://api.github.com/users/dshmatov/following{/other_user}","gists_url":"https://api.github.com/users/dshmatov/gists{/gist_id}","starred_url":"https://api.github.com/users/dshmatov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dshmatov/subscriptions","organizations_url":"https://api.github.com/users/dshmatov/orgs","repos_url":"https://api.github.com/users/dshmatov/repos","events_url":"https://api.github.com/users/dshmatov/events{/privacy}","received_events_url":"https://api.github.com/users/dshmatov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-25T10:10:57Z","updated_at":"2018-10-25T10:10:57Z","closed_at":null,"author_association":"NONE","body":"Platform: EKS, Minikube\r\nk8s: v1.10.4\r\nIstio: v1.0.2\r\n\r\nSo I'm stuck and have no clue what to do I have two namespaces with authomatic Istio injection: `demo` and `default`. I've created Deployment inside of each namespace:\r\n```\r\n---\r\nkind: Service\r\napiVersion: v1\r\nmetadata:\r\n  name: demo-app-svc-2\r\n  namespace: demo\r\n  labels:\r\n    app: demo-app-2\r\nspec:\r\n  selector:\r\n    app: demo-app-2\r\n  ports:\r\n  - name: web\r\n    port: 80\r\n    targetPort: web\r\n---\r\napiVersion: apps/v1\r\nkind: Deployment\r\nmetadata:\r\n  name: demo-app-2\r\n  namespace: demo\r\n  labels:\r\n    app: demo-app-2\r\nspec:\r\n  replicas: 2\r\n  selector:\r\n    matchLabels:\r\n      app: demo-app-2\r\n  template:\r\n    metadata:\r\n      labels:\r\n        app: demo-app-2\r\n    spec:\r\n      containers:\r\n      - name: demo-app\r\n        image: shmatovd/demo-app:0.0.9\r\n        ports:\r\n        - name: web\r\n          containerPort: 8080\r\n\r\n```\r\n\r\n```\r\n---\r\nkind: Service\r\napiVersion: v1\r\nmetadata:\r\n  name: demo-app-svc-2\r\n  namespace: demo\r\n  labels:\r\n    app: demo-app-2\r\nspec:\r\n  selector:\r\n    app: demo-app-2\r\n  ports:\r\n  - name: web\r\n    port: 80\r\n    targetPort: web\r\n---\r\napiVersion: apps/v1\r\nkind: Deployment\r\nmetadata:\r\n  name: demo-app-2\r\n  namespace: demo\r\n  labels:\r\n    app: demo-app-2\r\nspec:\r\n  replicas: 2\r\n  selector:\r\n    matchLabels:\r\n      app: demo-app-2\r\n  template:\r\n    metadata:\r\n      labels:\r\n        app: demo-app-2\r\n    spec:\r\n      containers:\r\n      - name: demo-app\r\n        image: shmatovd/demo-app:0.0.9\r\n        ports:\r\n        - name: web\r\n          containerPort: 8080\r\n\r\n```\r\n\r\nAnd created some routing rules with rewrite from `/reviews` to `/metrics`\r\n```\r\n---\r\napiVersion: networking.istio.io/v1alpha3\r\nkind: VirtualService\r\nmetadata:\r\n  name: demo-app-vs\r\nspec:\r\n  hosts:\r\n  - demo-app-svc.default.svc.cluster.local\r\n  http:\r\n  - match:\r\n    - uri:\r\n        prefix: /reviews\r\n    rewrite:\r\n      uri: /metrics\r\n    route:\r\n    - destination:\r\n        host: demo-app-svc.default.svc.cluster.local\r\n        subset: v1\r\n  - route:\r\n    - destination:\r\n        host: demo-app-svc.default.svc.cluster.local\r\n        subset: v1\r\n---\r\napiVersion: networking.istio.io/v1alpha3\r\nkind: DestinationRule\r\nmetadata:\r\n  name: demo-app-dr\r\nspec:\r\n  host: demo-app-svc.default.svc.cluster.local\r\n  subsets:\r\n  - name: v1\r\n    labels:\r\n      version: v1\r\n\r\n```\r\n\r\nwhen I'm trying to `curl` from `demo` namespace:\r\n```\r\ncurl demo-app-svc.default.svc.cluster.local/reviews\r\n\r\n```\r\n\r\nI got no rewrites, got no logs about this request in Envoy sidecars on both Pods. Do I do something wrong ? But if I try to point this routing to some external resource like `wikipedia.org` it works perfectly!\r\n\r\n```\r\nNAME                                        READY     STATUS    RESTARTS   AGE\r\nistio-citadel-769b85bf84-762dd              1/1       Running   0          20h\r\nistio-egressgateway-677c95648f-mz555        1/1       Running   0          20h\r\nistio-galley-5c65774d47-c8nq9               1/1       Running   0          20h\r\nistio-ingressgateway-6fd6575b8b-4p55z       1/1       Running   0          20h\r\nistio-pilot-65f4cfb764-pl8xr                2/2       Running   0          20h\r\nistio-policy-5b9945744b-zgjv8               2/2       Running   0          20h\r\nistio-sidecar-injector-75bfd779c9-x9jm5     1/1       Running   0          20h\r\nistio-statsd-prom-bridge-7f44bb5ddb-6fjcv   1/1       Running   0          20h\r\nistio-telemetry-5fc7ccc5b7-dxxhp            2/2       Running   0          20h\r\nprometheus-84bd4b9796-btgj2                 1/1       Running   0          20h\r\n```\r\n`Demo` namespace\r\n```\r\nNAME                              READY     STATUS    RESTARTS   AGE\r\npod/demo-app-2-7b747bc88f-6tdnr   2/2       Running   0          24m\r\npod/demo-app-2-7b747bc88f-jpv2l   2/2       Running   0          24m\r\n\r\nNAME                     TYPE        CLUSTER-IP     EXTERNAL-IP   PORT(S)   AGE\r\nservice/demo-app-svc-2   ClusterIP   172.20.27.25   <none>        80/TCP    24m\r\n\r\nNAME                         DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE\r\ndeployment.apps/demo-app-2   2         2         2            2           24m\r\n\r\nNAME                                    DESIRED   CURRENT   READY     AGE\r\nreplicaset.apps/demo-app-2-7b747bc88f   2         2         2         24m\r\n\r\n```\r\n`Default` namespace\r\n```\r\nNAME                           READY     STATUS    RESTARTS   AGE\r\npod/demo-app-69b6ddd94-ms52g   2/2       Running   0          19h\r\n\r\nNAME                   TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)   AGE\r\nservice/demo-app-svc   ClusterIP   172.20.134.134   <none>        80/TCP    19h\r\nservice/kubernetes     ClusterIP   172.20.0.1       <none>        443/TCP   1d\r\n\r\nNAME                       DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE\r\ndeployment.apps/demo-app   1         1         1            1           19h\r\n\r\nNAME                                 DESIRED   CURRENT   READY     AGE\r\nreplicaset.apps/demo-app-69b6ddd94   1         1         1         19h\r\n```\r\n"}}
{"actor":{"display_login":"dshmatov"}}