카타코더 - Visualising Microservices Dependencies with Scope

1 개요[ | ]

카타코더 - Visualising Microservices Dependencies with Scope

2 Bookinfo[ | ]

Bookinfo-noistio.svg

master $ kubectl get pods
NAME                              READY   STATUS    RESTARTS   AGE
details-v1-779c7845c5-mf7bl       2/2     Running   0          17s
productpage-v1-64f9bf7767-vk8h5   2/2     Running   0          17s
ratings-v1-596455959-lds9m        2/2     Running   0          17s
reviews-v1-6bdb55dbdf-6mhpq       2/2     Running   0          17s
reviews-v2-746cc79789-4fz77       2/2     Running   0          17s
reviews-v3-58fcf899fc-pjdg2       2/2     Running   0          17s

3 Deploy Scope[ | ]

master $ kubectl create -f 'https://cloud.weave.works/launch/k8s/weavescope.yaml'
namespace/weave created
serviceaccount/weave-scope created
clusterrole.rbac.authorization.k8s.io/weave-scope created
clusterrolebinding.rbac.authorization.k8s.io/weave-scope created
deployment.apps/weave-scope-app created
service/weave-scope-app created
deployment.apps/weave-scope-cluster-agent created
daemonset.extensions/weave-scope-agent created
master $ kubectl get pods -n weave
NAME                                        READY   STATUS    RESTARTS   AGE
weave-scope-agent-7fwsr                     1/1     Running   0          24s
weave-scope-agent-cqtp2                     1/1     Running   0          24s
weave-scope-app-6689cb649c-qtn2w            1/1     Running   0          24s
weave-scope-cluster-agent-b8564dd7b-gf95q   1/1     Running   0          24s
master $ pod=$(kubectl get pod -n weave --selector=name=weave-scope-app -o jsonpath={.items..metadata.name})
master $ kubectl expose pod $pod -n weave --external-ip="172.17.0.42" --port=4040 --target-port=4040
service/weave-scope-app-6689cb649c-qtn2w exposed

4 View Dependencies with Scope[ | ]

5 Deploy V3[ | ]

master $ kubectl apply -f samples/bookinfo/networking/virtual-service-reviews-v2-v3.yaml
virtualservice.networking.istio.io/reviews created

6 Service Graph[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}