Skip to content

Commit efca285

Browse files
committed
update summary
1 parent 78ca17b commit efca285

File tree

83 files changed

+1119
-1160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+1119
-1160
lines changed

SUMMARY.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
* [Application Scope](cloud-native/application-scope.md)
2020
* [Application Configuration](cloud-native/application-configuration.md)
2121
* [Crossplane](cloud-native/crossplane.md)
22-
* [云原生编程语言](cloud-native/cloud-native-programming-languages.md)
23-
* [云原生编程语言 Ballerina](cloud-native/cloud-native-programming-language-ballerina.md)
24-
* [云原生编程语言 Pulumi](cloud-native/cloud-native-programming-language-pulumi.md)
22+
* [云原生平台配置语言](cloud-native/cloud-native-programming-languages.md)
23+
* [Ballerina](cloud-native/cloud-native-programming-language-ballerina.md)
24+
* [Pulumi](cloud-native/cloud-native-programming-language-pulumi.md)
2525
* [云原生的未来](cloud-native/the-future-of-cloud-native.md)
2626

2727
## 快速入门
@@ -34,7 +34,7 @@
3434
## 概念与原理
3535

3636
* [Kubernetes 架构](concepts/index.md)
37-
* [设计理念](concepts/concepts.md)
37+
* [Kubernetes 的设计理念](concepts/concepts.md)
3838
* [Etcd 解析](concepts/etcd.md)
3939
* [开放接口](concepts/open-interfaces.md)
4040
* [容器运行时接口(CRI)](concepts/cri.md)
@@ -96,7 +96,7 @@
9696
* [使用 CRD 扩展 Kubernetes API](concepts/crd.md)
9797
* [Aggregated API Server](concepts/aggregated-api-server.md)
9898
* [APIService](concepts/apiservice.md)
99-
* [Service Catalog](concepts/service-catalog.md)
99+
* [服务目录(Service Catalog](concepts/service-catalog.md)
100100
* [多集群管理](concepts/multicluster.md)
101101
* [多集群服务 API(Multi-Cluster Services API)](concepts/multi-cluster-services-api.md)
102102
* [集群联邦(Cluster Federation)](practice/federation.md)
@@ -131,8 +131,7 @@
131131
* [通过端口转发访问集群中的应用程序](guide/connecting-to-applications-port-forward.md)
132132
* [使用 service 访问群集中的应用程序](guide/service-access-application-cluster.md)
133133
* [从外部访问 Kubernetes 中的 Pod](guide/accessing-kubernetes-pods-from-outside-of-the-cluster.md)
134-
* [Cabin - Kubernetes 手机客户端](guide/cabin-mobile-dashboard-for-kubernetes.md)
135-
* [Lens - Kubernetes IDE/桌面客户端](guide/kubernetes-desktop-client.md)
134+
* [Lens - Kubernetes IDE](guide/kubernetes-desktop-client.md)
136135
* [Kubernator - 更底层的 Kubernetes UI](guide/kubernator-kubernetes-ui.md)
137136
* [在 Kubernetes 中开发部署应用](guide/application-development-deployment-flow.md)
138137
* [适用于 Kubernetes 的应用开发部署流程](guide/deploy-applications-in-kubernetes.md)
@@ -194,7 +193,6 @@
194193
* [Prometheus](practice/prometheus.md)
195194
* [使用 Prometheus 监控 Kubernetes 集群](practice/using-prometheus-to-monitor-kuberentes-cluster.md)
196195
* [Prometheus 查询语言 PromQL 使用说明](practice/promql.md)
197-
* [使用 Vistio 监控 Istio 服务网格中的流量](practice/vistio-visualize-your-istio-mesh.md)
198196
* [分布式追踪](practice/distributed-tracing.md)
199197
* [OpenTracing](practice/opentracing.md)
200198
* [服务编排管理](practice/services-management-tool.md)

a.md

Whitespace-only changes.

appendix/kubernetes-and-cloud-native-summary-in-2018-and-outlook-for-2019.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
CNCF 生态中的诸多应用都已支持 Kubernetes Operator,可以说 Operator 将成为云原生中默认的软件动态运行时管理工具,参考 CoreOS(已被 RedHat 收购,RedHat 已被 IBM 收购) CTO Brandon Philips 的这篇文章 [Introducing the Operator Framework: Building Apps on Kubernetes](https://www.redhat.com/en/blog/introducing-operator-framework-building-apps-kubernetes)
5959

60-
## ServiceMesher社区
60+
## ServiceMesher 社区
6161

6262
下图展示的是 2019 Q1 的软件架构趋势,(图片来自 [Architecture and Design InfoQ Trends Report - January 2019](https://www.infoq.com/articles/architecture-trends-2019))我们可以看到 Service Mesh 还处于创新者阶段,如果从软件生命周期的全阶段来看,它还只是刚刚进入很多人的眼帘,对于这张的新兴技术,在蚂蚁金服的支持的下创办了 [ServiceMesher 社区](http://www.servicemesher.com)
6363

appendix/material-share.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## 社区资源
66

7-
Kubernetes 社区的贡献、交流和治理方式相关的内容都保存在 <https://github.com/kubernetes/community> 这个 repo 中,建议参与 Kubernetes 社区前先阅读该 repo 中的资料。
7+
Kubernetes 社区的贡献、交流和治理方式相关的内容都保存在[这个 repo](https://github.com/kubernetes/community) 中,建议参与 Kubernetes 社区前先阅读该 repo 中的资料。
88

99
在这里你可以找到:
1010

@@ -43,9 +43,8 @@ Kubernetes和Cloud Native相关网站、专栏、博客等。
4343
- [giantswarm blog](https://blog.giantswarm.io/)
4444
- [k8smeetup.com](http://www.k8smeetup.com)
4545
- [dockone.io](http://www.dockone.io)
46-
- [Cloud Native知乎专栏](https://zhuanlan.zhihu.com/cloud-native)
46+
- [Cloud Native 知乎专栏](https://zhuanlan.zhihu.com/cloud-native)
4747
- [kubernetes.org.cn](https://www.kubernetes.org.cn/)
48-
- [servicemesher.com](https://www.servicemesher.com)
4948

5049
### 博客
5150

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

+48-68
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
# 快速部署一个云原生本地实验环境
22

3-
本文旨在帮助您快速部署一个云原生本地实验环境,让您可以基本不需要任何Kubernetes和云原生技术的基础就可以对云原生环境一探究竟
3+
本文旨在帮助您快速部署一个云原生本地实验环境,让您可以基本不需要任何 Kubernetes 和云原生技术的基础就可以对云原生环境一探究竟
44

5-
本文中使用[kubernetes-vagrant-centos-cluster](https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster)在本地使用 Vagrant 启动三个虚拟机部署分布式的Kubernetes集群
5+
本文中使用 [kubernetes-vagrant-centos-cluster](https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster) 在本地使用 Vagrant 启动三个虚拟机部署分布式的 Kubernetes 集群
66

7-
如仅需要体验云原生环境和测试服务功能,可以使用更加轻量级的[cloud-native-sandbox](https://github.com/rootsongjc/cloud-native-sandbox)通过个人电脑的Docker部署单节点的Kubernetes、Istio等云原生环境
7+
如仅需要体验云原生环境和测试服务功能,可以使用更加轻量级的 [cloud-native-sandbox](https://github.com/rootsongjc/cloud-native-sandbox)通过个人电脑的 Docker 部署单节点的 Kubernetes、Istio 等云原生环境
88

99
## 准备环境
1010

1111
需要准备以下软件和环境:
1212

13-
- 8G以上内存
13+
- 8G 以上内存
1414
- [Vagrant 2.0+](https://www.vagrantup.com/)
1515
- [VirtualBox 5.0 +](https://www.virtualbox.org/wiki/Downloads)
16-
- 提前下载kubernetes1.9.1以上版本的release压缩包[至百度网盘下载](https://pan.baidu.com/s/1zkg2xEAedvZHObmTHDFChg)(并将名字中的版本号删除)
17-
- Mac/Linux,**不支持Windows**
18-
- 支持Kubernetes1.9以上版本(支持当前Kubernetes最新版本1.11.1)
16+
- 提前下载 Kubernetes1.9.1 以上版本的 release 压缩包[至百度网盘下载](https://pan.baidu.com/s/1zkg2xEAedvZHObmTHDFChg)(并将名字中的版本号删除)
17+
- Mac/Linux,**不支持 Windows**
18+
- 支持 Kubernetes1.9 以上版本(支持当前 Kubernetes 最新版本 1.11.1)
1919

2020
## 集群
2121

22-
我们使用Vagrant和Virtualbox安装包含3个节点的kubernetes集群,其中master节点同时作为node节点
22+
我们使用 Vagrant 和 VirtualBox 安装包含 3 个节点的 Kubernetes 集群,其中 master 节点同时作为 node 节点
2323

2424
| IP | 主机名 | 组件 |
2525
| ------------ | ------ | ------------------------------------------------------------ |
@@ -52,45 +52,45 @@ Kubernetes service IP范围:10.254.0.0/16
5252

5353
## 使用说明
5454

55-
确保安装好以上的准备环境后,执行下列命令启动kubernetes集群
55+
确保安装好以上的准备环境后,执行下列命令启动 kubernetes 集群
5656

5757
```bash
5858
git clone https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster.git
5959
cd kubernetes-vagrant-centos-cluster
6060
vagrant up
6161
```
6262

63-
**注意**克隆完Git仓库后,需要提前下载kubernetes的压缩包到`kubenetes-vagrant-centos-cluster`目录下,**并将压缩包名字中的版本号删除**,包括如下两个文件:
63+
**注意**克隆完 Git 仓库后,需要提前下载 kubernetes 的压缩包到 `kubenetes-vagrant-centos-cluster` 目录下,**并将压缩包名字中的版本号删除**,包括如下两个文件:
6464

6565
- kubernetes-client-linux-amd64.tar.gz
6666
- kubernetes-server-linux-amd64.tar.gz
6767

68-
如果是首次部署,会自动下载`centos/7`的box,这需要花费一些时间,另外每个节点还需要下载安装一系列软件包,整个过程大概需要10几分钟
68+
如果是首次部署,会自动下载 `centos/7` 的 box,这需要花费一些时间,另外每个节点还需要下载安装一系列软件包,整个过程大概需要 10 几分钟
6969

70-
如果您在运行`vagrant up`的过程中发现无法下载`centos/7`的box,可以手动下载后将其添加到vagrant中
70+
如果您在运行 `vagrant up` 的过程中发现无法下载 `centos/7` 的 box,可以手动下载后将其添加到 vagrant 中
7171

72-
**手动添加centos/7 box**
72+
**手动添加 centos/7 box**
7373

7474
```bash
7575
wget -c http://cloud.centos.org/centos/7/vagrant/x86_64/images/CentOS-7-x86_64-Vagrant-1801_02.VirtualBox.box
7676
vagrant box add CentOS-7-x86_64-Vagrant-1801_02.VirtualBox.box --name centos/7
7777
```
7878

79-
这样下次运行`vagrant up`的时候就会自动读取本地的`centos/7` box而不会再到网上下载
79+
这样下次运行 `vagrant up` 的时候就会自动读取本地的 `centos/7` box 而不会再到网上下载
8080

81-
### 访问kubernetes集群
81+
### 访问 kubernetes 集群
8282

83-
访问Kubernetes集群的方式有三种
83+
访问 Kubernetes 集群的方式有三种
8484

8585
- 本地访问
86-
- 在VM内部访问
86+
- 在 VM 内部访问
8787
- kubernetes dashboard
8888

8989
**通过本地访问**
9090

91-
可以直接在你自己的本地环境中操作该kubernetes集群,而无需登录到虚拟机中,执行以下步骤:
91+
可以直接在你自己的本地环境中操作该 kubernetes 集群,而无需登录到虚拟机中,执行以下步骤:
9292

93-
`conf/admin.kubeconfig`文件放到`~/.kube/config`目录下即可在本地使用`kubectl`命令操作集群。
93+
`conf/admin.kubeconfig` 文件放到 `~/.kube/config` 目录下即可在本地使用 `kubectl` 命令操作集群。
9494

9595
```bash
9696
mkdir -p ~/.kube
@@ -111,77 +111,77 @@ kubectl get nodes
111111

112112
**Kubernetes dashboard**
113113

114-
还可以直接通过dashboard UI来访问:https://172.17.8.101:8443
114+
还可以直接通过 dashboard UI 来访问:[https://172.17.8.101:8443](https://172.17.8.101:8443/)
115115

116-
可以在本地执行以下命令获取token的值(需要提前安装kubectl):
116+
可以在本地执行以下命令获取 token 的值(需要提前安装 kubectl):
117117

118118
```bash
119119
kubectl -n kube-system describe secret `kubectl -n kube-system get secret|grep admin-token|cut -d " " -f1`|grep "token:"|tr -s " "|cut -d " " -f2
120120
```
121121

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

124124
![Kubernetes dashboard](https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster/raw/master/images/dashboard-animation.gif)
125125

126-
**Heapster监控**
126+
**Heapster 监控**
127127

128-
创建Heapster监控
128+
创建 Heapster 监控
129129

130130
```bash
131131
kubectl apply -f addon/heapster/
132132
```
133133

134-
访问Grafana
134+
访问 Grafana
135135

136-
使用Ingress方式暴露的服务,在本地`/etc/hosts`中增加一条配置:
136+
使用 Ingress 方式暴露的服务,在本地 `/etc/hosts` 中增加一条配置:
137137

138138
```ini
139139
172.17.8.102 grafana.jimmysong.io
140140
```
141141

142-
访问Grafana`http://grafana.jimmysong.io`
142+
访问 Grafana`http://grafana.jimmysong.io`
143143

144144
![Grafana](https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster/raw/master/images/grafana-animation.gif)
145145

146146
**Traefik**
147147

148-
部署Traefik ingress controller和增加ingress配置
148+
部署 Traefik ingress controller 和增加 ingress 配置
149149

150150
```bash
151151
kubectl apply -f addon/traefik-ingress
152152
```
153153

154-
在本地`/etc/hosts`中增加一条配置:
154+
在本地 `/etc/hosts` 中增加一条配置:
155155

156156
```ini
157157
172.17.8.102 traefik.jimmysong.io
158158
```
159159

160-
访问Traefik UI:<http://traefik.jimmysong.io>
160+
访问 Traefik UI:[http://traefik.jimmysong.io](http://traefik.jimmysong.io/)
161161

162162
![Traefik dashboard](https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster/raw/master/images/traefik-ingress.gif)
163163

164164
**EFK**
165165

166-
使用EFK做日志收集
166+
使用 EFK 做日志收集
167167

168168
```bash
169169
kubectl apply -f addon/efk/
170170
```
171171

172-
**注意**运行EFK的每个节点需要消耗很大的CPU和内存,请保证每台虚拟机至少分配了4G内存
172+
**注意**运行 EFK 的每个节点需要消耗很大的 CPU 和内存,请保证每台虚拟机至少分配了 4G 内存
173173

174174
**Helm**
175175

176-
用来部署helm
176+
用来部署 helm
177177

178178
```bash
179179
hack/deploy-helm.sh
180180
```
181181

182182
### Service Mesh
183183

184-
我们使用 [istio](https://istio.io) 作为 service mesh。
184+
我们使用 [Istio](https://istio.io/) 作为 service mesh。
185185

186186
**安装**
187187

@@ -196,14 +196,14 @@ kubectl apply -n default -f <(istioctl kube-inject -f yaml/istio-bookinfo/bookin
196196
istioctl create -f yaml/istio-bookinfo/bookinfo-gateway.yaml
197197
```
198198

199-
在您自己的本地主机的`/etc/hosts`文件中增加如下配置项。
199+
在您自己的本地主机的 `/etc/hosts` 文件中增加如下配置项。
200200

201201
```
202202
172.17.8.102 grafana.istio.jimmysong.io
203203
172.17.8.102 servicegraph.istio.jimmysong.io
204204
```
205205

206-
我们可以通过下面的URL地址访问以上的服务
206+
我们可以通过下面的 URL 地址访问以上的服务
207207

208208
| Service | URL |
209209
| ------------ | ------------------------------------------------------------ |
@@ -212,60 +212,41 @@ istioctl create -f yaml/istio-bookinfo/bookinfo-gateway.yaml
212212
| tracing | `http://172.17.8.101:$JAEGER_PORT` |
213213
| productpage | `http://172.17.8.101:$GATEWAY_PORT/productpage` |
214214

215-
**注意**`JAEGER_PORT`可以通过`kubectl -n istio-system get svc tracing -o jsonpath='{.spec.ports[0].nodePort}'`获取,`GATEWAY_PORT`可以通过`kubectl -n istio-system get svc istio-ingressgateway -o jsonpath='{.spec.ports[0].nodePort}'`获取。
215+
**注意**`JAEGER_PORT` 可以通过 `kubectl -n istio-system get svc tracing -o jsonpath='{.spec.ports[0].nodePort}'` 获取,`GATEWAY_PORT` 可以通过 `kubectl -n istio-system get svc istio-ingressgateway -o jsonpath='{.spec.ports[0].nodePort}'` 获取。
216216

217217
![bookinfo示例](https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster/raw/master/images/bookinfo-demo.gif)
218218

219-
### Vistio
220-
221-
[Vizceral](https://github.com/Netflix/vizceral)是Netflix发布的一个开源项目,用于近乎实时地监控应用程序和集群之间的网络流量。Vistio是使用Vizceral对Istio和网格监控的改进。它利用Istio Mixer生成的指标,然后将其输入Prometheus。Vistio查询Prometheus并将数据存储在本地以允许重播流量。
222-
223-
```bash
224-
# Deploy vistio via kubectl
225-
kubectl apply -f addon/vistio/
226-
227-
# Expose vistio-api
228-
kubectl -n default port-forward $(kubectl -n default get pod -l app=vistio-api -o jsonpath='{.items[0].metadata.name}') 9091:9091 &
229-
230-
# Expose vistio in another terminal window
231-
kubectl -n default port-forward $(kubectl -n default get pod -l app=vistio-web -o jsonpath='{.items[0].metadata.name}') 8080:8080 &
232-
```
233-
234-
如果一切都已经启动并准备就绪,您就可以访问Vistio UI,开始探索服务网格网络,访问[http://localhost:8080](http://localhost:8080/) 您将会看到类似下图的输出。
235-
236-
![vistio视图动画](https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster/raw/master/images/vistio-animation.gif)
237-
238-
更多详细内容请参考[Vistio—使用Netflix的Vizceral可视化Istio service mesh](https://servicemesher.github.io/blog/vistio-visualize-your-istio-mesh-using-netflixs-vizceral/)
239-
240219
### Kiali
241220

242-
Kiali是一个用于提供Istio service mesh观察性的项目,更多信息请查看 [https://kiali.io](https://kiali.io/)
221+
Kiali 是一个用于提供 Istio service mesh 观察性的项目,更多信息请查看 [https://kiali.io](https://kiali.io/)
243222

244223
在本地该项目的根路径下执行下面的命令:
245224

246225
```bash
247226
kubectl apply -n istio-system -f addon/kiali
248227
```
249228

250-
Kiali web地址`http://172.17.8.101:31439`
229+
Kiali web 地址`http://172.17.8.101:31439`
251230

252-
用户名/密码:admin/admin
231+
用户名 / 密码:admin/admin
253232

254233
![Kiali页面](https://github.com/rootsongjc/kubernetes-vagrant-centos-cluster/raw/master/images/kiali.gif)
255234

256235
**注意**:Kilia使用Jaeger做追踪,请不用屏蔽kilia页面的弹出窗口。
257236

237+
**注意**:Kilia 使用 Jaeger 做追踪,请不用屏蔽 kilia 页面的弹出窗口。
238+
258239
### Weave scope
259240

260-
[Weave scope](https://github.com/weaveworks/scope)可用于监控、可视化和管理Docker&Kubernetes集群,详情见 https://www.weave.works/oss/scope/
241+
[Weave scope](https://github.com/weaveworks/scope) 可用于监控、可视化和管理 Docker&Kubernetes 集群,详情见 [Weave 官方文档](https://www.weave.works/oss/scope/)
261242

262243
在本地该项目的根路径下执行下面的命令:
263244

264245
```bash
265246
kubectl apply -f addon/weave-scope
266247
```
267248

268-
在本地的`/etc/hosts`下增加一条记录。
249+
在本地的 `/etc/hosts` 下增加一条记录。
269250

270251
```
271252
172.17.8.102 scope.weave.jimmysong.io
@@ -277,7 +258,7 @@ kubectl apply -f addon/weave-scope
277258

278259
## 管理
279260

280-
除了特别说明,以下命令都在当前的repo目录下操作
261+
除了特别说明,以下命令都在当前的 repo 目录下操作
281262

282263
### 挂起
283264

@@ -324,7 +305,7 @@ cd /vagrant/hack
324305
exit
325306
```
326307

327-
现在你已经拥有一个完整的基础的kubernetes运行环境,在该repo的根目录下执行下面的命令可以获取kubernetes dahsboard的admin用户的token
308+
现在你已经拥有一个完整的基础的 kubernetes 运行环境,在该 repo 的根目录下执行下面的命令可以获取 kubernetes dahsboard 的 admin 用户的 token
328309

329310
```bash
330311
hack/get-dashboard-token.sh
@@ -348,6 +329,5 @@ rm -rf .vagrant
348329
## 参考
349330

350331
- [Kubernetes handbook - jimmysong.io](https://jimmysong.io/kubernetes-handbook)
351-
- [duffqiu/centos-vagrant](https://github.com/duffqiu/centos-vagrant)
352-
- [coredns/deployment](https://github.com/coredns/deployment)
353-
- [Vistio—使用Netflix的Vizceral可视化Istio service mesh](http://www.servicemesher.com/blog/vistio-visualize-your-istio-mesh-using-netflixs-vizceral/)
332+
- [duffqiu/centos-vagrant - github.com](https://github.com/duffqiu/centos-vagrant)
333+
- [coredns/deployment - github.com](https://github.com/coredns/deployment)

cloud-native/cloud-native-programming-language-ballerina.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 云原生编程语言 Ballerina
1+
# Ballerina
22

33
当我第一眼看到 [Ballerina](https://ballerina.io) 还真有点惊艳的感觉。Ballerina 这个单词的意思是“芭蕾舞女演员”。我想他们之所以给公司和这们语言起这个名字,可能是希望它成为云原生这个大舞台中,Ballerina 能像一个灵活的芭蕾舞者一样轻松自如吧!
44

cloud-native/cloud-native-programming-language-pulumi.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 云原生编程语言 Pulumi
1+
# Pulumi
22

33
2018 年 6 月 18 日 Joe Duffy 在[他的博客](http://joeduffyblog.com/2018/06/18/hello-pulumi/)中宣布开源了云原生编程语言 [Pulumi](https://www.pulumi.com/)。这是继 [Ballerina](https://ballerina.io/) 之后我看到的另一款云原生编程语言,他们之间有一些共同的特点,例如都是为了支持多种云环境,基于不可变基础设施和基础设施即代码的理念构建,使云原生应用的集成更加方便,但也有一些不同,Ballerina 是直接创建了一个基于 JVM 的语言,而 Pulumi 是为不同编程语言构建了 SDK。
44

0 commit comments

Comments
 (0)