huang195 / mesh-tools

Use service mesh in k8s with ease
2 stars 0 forks source link

Unable to replicate kiali topology graph with bookinfo #2

Open sriumcp opened 5 years ago

sriumcp commented 5 years ago

I tried the following steps...

  1. kubectl create namespace bimesh
  2. kubectl apply -f https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/platform/kube/bookinfo.yaml -n bimesh
  3. kubectl -n istio-mesh port-forward $(kubectl -n istio-mesh get pod -l app=kiali -o jsonpath='{.items[0].metadata.name}') 20001:20001 -- this gets me a nice kiali web interface at http://localhost:20001/kiali
  4. kubectl get svc productpage -n bimesh -oyaml > ppsvc.yml
  5. I edited ppsvc.yml so that product page service is of type nodeport. I can now access it outside the cluster after I did kubectl apply -f ppsvc.yml -n bimesh
    • In particular, I am able to send traffic to the application by accessing http://169.60.227.121:31470/productpage (i.e., my public ip : nodeport)
  6. When I go over to kiali webpage, I get the following error: Error fetching Mesh-wide mTLS status., Error: [ the server could not find the requested resource (get meshpolicies.authentication.istio.io)
  7. When I click on graph, I see this...

kiali topology

this is very different (and broken) compared to what I am able to see in kiali if I manually install Istio and then istiofy my deployments. I have described what I see in that case here

huang195 commented 5 years ago

I tried to reproduce this problem on both Ubuntu and a Mac kubectl client, and I couldn't reproduce this particular issue. Are you sure the kiali instance you're accessing is installed via kubectl mesh up?