{"action":"created","issue":{"url":"https://api.github.com/repos/istio/istio/issues/7640","repository_url":"https://api.github.com/repos/istio/istio","labels_url":"https://api.github.com/repos/istio/istio/issues/7640/labels{/name}","comments_url":"https://api.github.com/repos/istio/istio/issues/7640/comments","events_url":"https://api.github.com/repos/istio/istio/issues/7640/events","html_url":"https://github.com/istio/istio/issues/7640","id":347584815,"node_id":"MDU6SXNzdWUzNDc1ODQ4MTU=","number":7640,"title":"cannot access book info example ","user":{"login":"shavo007","id":5466825,"node_id":"MDQ6VXNlcjU0NjY4MjU=","avatar_url":"https://avatars2.githubusercontent.com/u/5466825?v=4","gravatar_id":"","url":"https://api.github.com/users/shavo007","html_url":"https://github.com/shavo007","followers_url":"https://api.github.com/users/shavo007/followers","following_url":"https://api.github.com/users/shavo007/following{/other_user}","gists_url":"https://api.github.com/users/shavo007/gists{/gist_id}","starred_url":"https://api.github.com/users/shavo007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shavo007/subscriptions","organizations_url":"https://api.github.com/users/shavo007/orgs","repos_url":"https://api.github.com/users/shavo007/repos","events_url":"https://api.github.com/users/shavo007/events{/privacy}","received_events_url":"https://api.github.com/users/shavo007/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-08-04T04:06:49Z","updated_at":"2018-12-17T20:02:39Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\nI followed the steps to install istio and the book info example. i got down as far as accessing the service https://istio.io/docs/examples/bookinfo/#confirm-the-app-is-running.\r\n\r\n```\r\n$ kubectl get svc istio-ingressgateway -n istio-system\r\nNAME                   TYPE           CLUSTER-IP      EXTERNAL-IP   PORT(S)                                                                                                     AGE\r\nistio-ingressgateway   LoadBalancer   10.107.177.68   localhost     80:31380/TCP,443:31390/TCP,31400:31400/TCP,15011:31531/TCP,8060:30656/TCP,15030:32388/TCP,15031:31829/TCP   52m\r\n```\r\n\r\nI am running docker for mac with kubernetes and have a feeling that this is the issue. \r\n\r\n\r\n\r\n**Expected behavior**\r\n I expected to access the service on the nodeport and host localhost\r\n\r\n**Steps to reproduce the bug**\r\nInstall istio on docker for mac with kubernetes locally and install the book info example.\r\n\r\n**Version**\r\n```\r\n\r\n$ istioctl version\r\nVersion: 1.0.0\r\nGitRevision: 3a136c90ec5e308f236e0d7ebb5c4c5e405217f4\r\nUser: root@71a9470ea93c\r\nHub: gcr.io/istio-release\r\nGolangVersion: go1.10.1\r\nBuildStatus: Clean\r\n```\r\n\r\n```\r\n$ kubectl version\r\nClient Version: version.Info{Major:\"1\", Minor:\"10\", GitVersion:\"v1.10.3\", GitCommit:\"2bba0127d85d5a46ab4b778548be28623b32d0b0\", GitTreeState:\"clean\", BuildDate:\"2018-05-21T09:17:39Z\", GoVersion:\"go1.9.3\", Compiler:\"gc\", Platform:\"darwin/amd64\"}\r\nServer Version: version.Info{Major:\"1\", Minor:\"10\", GitVersion:\"v1.10.3\", GitCommit:\"2bba0127d85d5a46ab4b778548be28623b32d0b0\", GitTreeState:\"clean\", BuildDate:\"2018-05-21T09:05:37Z\", GoVersion:\"go1.9.3\", Compiler:\"gc\", Platform:\"linux/amd64\"}\r\n```\r\n**Is Istio Auth enabled or not?**\r\nI installed without mutual TLS\r\n`kubectl apply -f install/kubernetes/istio-demo.yaml`\r\n\r\n**Environment**\r\nDocker for mac version 18.06.0-ce-mac69\r\n\r\n\r\nServices\r\n```\r\n\r\n$ kubectl get services\r\nNAME          TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)    AGE\r\ndetails       ClusterIP   10.104.19.162    <none>        9080/TCP   1h\r\nkubernetes    ClusterIP   10.96.0.1        <none>        443/TCP    28d\r\nproductpage   ClusterIP   10.99.191.13     <none>        9080/TCP   1h\r\nratings       ClusterIP   10.101.138.190   <none>        9080/TCP   1h\r\nreviews       ClusterIP   10.103.132.194   <none>        9080/TCP   1h\r\nsleep         ClusterIP   10.97.58.54      <none>        80/TCP     1h\r\n```\r\n\r\npods\r\n\r\n```\r\n$ kubectl get pods\r\nNAME                           READY     STATUS    RESTARTS   AGE\r\ndetails-v1-6865b9b99d-nhw2q    2/2       Running   0          1h\r\nproductpage-v1-f8c8fb8-6d6rs   2/2       Running   0          1h\r\nratings-v1-77f657f55d-xb9nf    2/2       Running   0          1h\r\nreviews-v1-6b7f6db5c5-7fklj    2/2       Running   0          1h\r\nreviews-v2-7ff5966b99-jlm67    2/2       Running   0          1h\r\nreviews-v3-5df889bcff-v4t7m    2/2       Running   0          1h\r\nsleep-86f6b99f94-xwr7b         2/2       Running   0          1h\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/istio/istio/issues/comments/447979462","html_url":"https://github.com/istio/istio/issues/7640#issuecomment-447979462","issue_url":"https://api.github.com/repos/istio/istio/issues/7640","id":447979462,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Nzk3OTQ2Mg==","user":{"login":"chainat","id":572015,"node_id":"MDQ6VXNlcjU3MjAxNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/572015?v=4","gravatar_id":"","url":"https://api.github.com/users/chainat","html_url":"https://github.com/chainat","followers_url":"https://api.github.com/users/chainat/followers","following_url":"https://api.github.com/users/chainat/following{/other_user}","gists_url":"https://api.github.com/users/chainat/gists{/gist_id}","starred_url":"https://api.github.com/users/chainat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chainat/subscriptions","organizations_url":"https://api.github.com/users/chainat/orgs","repos_url":"https://api.github.com/users/chainat/repos","events_url":"https://api.github.com/users/chainat/events{/privacy}","received_events_url":"https://api.github.com/users/chainat/received_events","type":"User","site_admin":false},"created_at":"2018-12-17T20:02:39Z","updated_at":"2018-12-17T20:02:39Z","author_association":"NONE","body":"I was testing kubernetes supplied by docker-for-mac with istio 1.0.5 where encountered the exact same problem. I deployed the stack by using a `istio-demo.yaml` file. Took me a while to figure out the routing issue. I found out that the problem is from Gateway resource from that file. It had a wrong pod selector.  The correct one should be `istio: ingressgateway` but the package contains just `istio: ingress`\r\n\r\nHere is a working copy:\r\n`\r\napiVersion: networking.istio.io/v1alpha3\r\nkind: Gateway\r\nmetadata:\r\n  name: istio-autogenerated-k8s-ingress\r\n  namespace: istio-system\r\nspec:\r\n  selector:\r\n    istio: ingressgateway\r\n  servers:\r\n  - port:\r\n      number: 80\r\n      protocol: HTTP2\r\n      name: http\r\n    hosts:\r\n    - \"*\"\r\n`\r\nOnce updated, technically, you should be able to access `http://localhost/productpage` straightaway. However, In my case, I needed to restart an isio-ingressgateway controller pod in istio-system. I shouldn't need to do that tho."}}
{"actor":{"display_login":"chainat"}}