Skip to content

Commit 04b8110

Browse files
committed
update quick start, add kiali and weave scope
1 parent 8fb6b5a commit 04b8110

File tree

1 file changed

+39
-6
lines changed

1 file changed

+39
-6
lines changed

cloud-native/cloud-native-local-quick-start.md

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,12 +121,6 @@ kubectl -n kube-system describe secret `kubectl -n kube-system get secret|grep a
121121

122122
**注意**:token的值也可以在`vagrant up`的日志的最后看到。
123123

124-
也可以直接使用下面的token:
125-
126-
```ini
127-
eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJrdWJlLXN5c3RlbSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJhZG1pbi10b2tlbi1rNzR6YyIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50Lm5hbWUiOiJhZG1pbiIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6ImY4NzBlZjU0LThiZWUtMTFlOC05NWU0LTUyNTQwMGFkM2I0MyIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDprdWJlLXN5c3RlbTphZG1pbiJ9.CLTKPT-mRYLkAWTIIQlAKE2JWoZY5ZS6jNO0KIN5MZCDkKuyUd8s3dnYmuIL2Qgu_KFXNhUuGLtYW4-xA1r2EqJ2qDMZDOHbgqk0suHI_BbNWMgIFeX5O1ZUOA34FcJl3hpLjyQBSZr07g3MGjM5qeMWqtXErW8v_7iHQg9o1wdhDK57S3rVCngHvjbCNNR6KO2_Eh1EZSvn4WeSzBo1F2yH0CH5kiOd9V-Do7t_ODuwhLmG60x0CqCrYt0jX1WSogdOuV0u2ZFF9RYM36TdV7770nbxY7hYk2tvVs5mxUH01qrj49kRJpoOxUeKTDH92b0aPSB93U7-y_NuVP7Ciw
128-
```
129-
130124
![Kubernetes dashboard](https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster/raw/master/images/dashboard-animation.gif)
131125

132126
**Heapster监控**
@@ -165,6 +159,8 @@ kubectl apply -f addon/traefik-ingress
165159

166160
访问Traefik UI:<http://traefik.jimmysong.io>
167161

162+
![Traefik dashboard](https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster/raw/master/images/traefik-ingress.gif)
163+
168164
**EFK**
169165

170166
使用EFK做日志收集。
@@ -220,6 +216,8 @@ istioctl create -f yaml/istio-bookinfo/bookinfo-gateway.yaml
220216

221217
详细信息请参阅 https://istio.io/docs/guides/bookinfo.html
222218

219+
![bookinfo示例](https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster/raw/master/images/bookinfo-demo.gif)
220+
223221
### Vistio
224222

225223
[Vizceral](https://github.com/Netflix/vizceral)是Netflix发布的一个开源项目,用于近乎实时地监控应用程序和集群之间的网络流量。Vistio是使用Vizceral对Istio和网格监控的改进。它利用Istio Mixer生成的指标,然后将其输入Prometheus。Vistio查询Prometheus并将数据存储在本地以允许重播流量。
@@ -241,6 +239,40 @@ kubectl -n default port-forward $(kubectl -n default get pod -l app=vistio-web -
241239

242240
更多详细内容请参考[Vistio—使用Netflix的Vizceral可视化Istio service mesh](https://servicemesher.github.io/blog/vistio-visualize-your-istio-mesh-using-netflixs-vizceral/)
243241

242+
### Kiali
243+
244+
Kiali是一个用于提供Istio service mesh观察性的项目,更多信息请查看[https://kiali.io](https://kiali.io/)
245+
246+
在本地该项目的根路径下执行下面的命令:
247+
248+
```bash
249+
kubectl apply -n istio-system -f addon/kiali
250+
```
251+
252+
![Kiali动画](https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster/raw/master/images/kiali.gif)
253+
254+
**注意**:当前还不支持jeager追踪,请使用上文中提到的jeager地址。
255+
256+
### Weave scope
257+
258+
[Weave scope](https://github.com/weaveworks/scope)可用于监控、可视化和管理Docker&Kubernetes集群,详情见<https://www.weave.works/oss/scope/>
259+
260+
在本地该项目的根路径下执行下面的命令:
261+
262+
```bash
263+
kubectl apply -f addon/weave-scope
264+
```
265+
266+
在本地的`/etc/hosts`下增加一条记录。
267+
268+
```
269+
172.17.8.102 scope.weave.jimmysong.io
270+
```
271+
272+
现在打开浏览器,访问http://scope.weave.jimmysong.io/
273+
274+
![Kiali动画](https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster/raw/master/images/weave-scope-animation.gif)
275+
244276
## 管理
245277

246278
除了特别说明,以下命令都在当前的repo目录下操作。
@@ -315,5 +347,6 @@ rm -rf .vagrant
315347

316348
- [Kubernetes handbook - jimmysong.io](https://jimmysong.io/kubernetes-handbook)
317349
- [duffqiu/centos-vagrant](https://github.com/duffqiu/centos-vagrant)
350+
- [coredns/deployment](https://github.com/coredns/deployment)
318351
- [Kubernetes 1.8 kube-proxy 开启 ipvs](https://mritd.me/2017/10/10/kube-proxy-use-ipvs-on-kubernetes-1.8/#%E4%B8%80%E7%8E%AF%E5%A2%83%E5%87%86%E5%A4%87)
319352
- [Vistio—使用Netflix的Vizceral可视化Istio service mesh](https://servicemesher.github.io/blog/vistio-visualize-your-istio-mesh-using-netflixs-vizceral/)

0 commit comments

Comments
 (0)