-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
479 lines (341 loc) · 19.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
<!doctype html>
<html lang="zh">
<head>
<meta name="generator" content="Hugo 0.78.2" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="referrer" content="no-referrer-when-downgrade">
<title>沧海的博客 | K8s,ServiceMesh</title>
<meta property="og:title" content="沧海的博客 | K8s,ServiceMesh">
<meta property="og:type" content="website">
<meta name="Keywords" content="golang,go语言,go语言笔记,沧海,xudong,旭东,kubernetes,istio,mesh,service mesh,yaml">
<meta name="description" content="专注于K8s,ServiceMesh,Go语言(golang),网关">
<meta property="og:url" content="https://lxd5866.github.io/">
<link rel="shortcut icon" href='/favicon.ico' type="image/x-icon">
<link rel="stylesheet" href='/css/normalize.css'>
<link rel="stylesheet" href='/css/style.css'>
<link rel="alternate" type="application/rss+xml+xml" href="https://lxd5866.github.io/index.xml" title="沧海的博客" />
<script type="text/javascript" src="//cdn.bootcdn.net/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</head>
<body>
<header id="header" class="clearfix">
<div class="container">
<div class="col-group">
<div class="site-name ">
<h1>
<a id="logo" href="https://lxd5866.github.io/">
沧海的博客
</a>
</h1>
<p class="description">K8s,ServiceMesh</p>
</div>
<div>
<nav id="nav-menu" class="clearfix">
<a class="current" href="https://lxd5866.github.io/">首页</a>
<a href="https://lxd5866.github.io/post/about" title="关于">关于</a>
</nav>
</div>
</div>
</div>
</header>
<div id="body">
<div class="container">
<div class="col-group">
<div class="col-8" id="main">
<div class="res-cons">
<article class="post">
<header>
<h1 class="post-title">
<a href="https://lxd5866.github.io/post/2020-12-17-1/" title="2020 年 - 年度总结">2020 年 - 年度总结</a>
</h1>
</header>
<date class="post-meta meta-date">
2020年12月17日
</date>
<div class="post-meta">
<span>|</span>
<span class="meta-category"><a href='/categories/Golang'>Golang</a></span>
<span class="meta-category"><a href='/categories/istio'>istio</a></span>
</div>
<div class="post-content">
2020 年总结 回顾2020年的经历,感觉有些颓废。最近在找工作,这种颓废的气氛也有点影响。自己没想通, 我一个2B青年哪来的多愁善感,直到恒生电子的面试官说了一句,自己开公司那啊,这两年都荒废了是吧,才猛然醒悟, 这浑浑噩噩的状态,从说出:既然公司方向变了不做技术,那我退出吧开始的。 这一年……
</div>
<p class="readmore"><a href="https://lxd5866.github.io/post/2020-12-17-1/">阅读全文</a></p>
</article>
<article class="post">
<header>
<h1 class="post-title">
<a href="https://lxd5866.github.io/post/2020-12-14-3/" title="pilot 压力测试【小记】">pilot 压力测试【小记】</a>
</h1>
</header>
<date class="post-meta meta-date">
2020年12月14日
</date>
<div class="post-meta">
<span>|</span>
<span class="meta-category"><a href='/categories/Golang'>Golang</a></span>
<span class="meta-category"><a href='/categories/istio'>istio</a></span>
</div>
<div class="post-content">
1. 压测方案 简述 模拟在20w pod、15w CR、每秒1200+ pod变更事件的压力下进行全机房odp重启的模拟测试 具体流程 Pilot启动时向APISerer list/watch并进行初始化,完成后对外提供服务 压力机模拟 sidecar 向Pilot发起grpc建链 压力机向Pilot发起请求 Pilo……
</div>
<p class="readmore"><a href="https://lxd5866.github.io/post/2020-12-14-3/">阅读全文</a></p>
</article>
<article class="post">
<header>
<h1 class="post-title">
<a href="https://lxd5866.github.io/post/2020-12-14-2/" title="Golang pprof 调试">Golang pprof 调试</a>
</h1>
</header>
<date class="post-meta meta-date">
2020年12月14日
</date>
<div class="post-meta">
<span>|</span>
<span class="meta-category"><a href='/categories/Golang'>Golang</a></span>
</div>
<div class="post-content">
背景 分析 pilot 运行时内存占用大的原因 用法 生成 profile file 1 2 3 4 5 6 7 go tool pprof -inuse_space http://app_ip:port/debug/pprof/heap //文件会生产到 /Users/用户名/pprof/下 (pprof) (pprof)nodefraction=0.05 //过滤数量 (pprof) (pprof)sample_index=inuse_space // 切换 [alloc_objects alloc_space inuse_objects inuse_space] (pprof)web //打开web页面 比较两个文件,常用在资源发生变化时比较消耗的原因 1 go tool pprof --base 002.pb.gz .pb.gz 直接分析某个文件 1 2 //可以查看各种图表 so……
</div>
<p class="readmore"><a href="https://lxd5866.github.io/post/2020-12-14-2/">阅读全文</a></p>
</article>
<article class="post">
<header>
<h1 class="post-title">
<a href="https://lxd5866.github.io/post/2020-12-14-1/" title="Envoy proto 生成 go-control-plane">Envoy proto 生成 go-control-plane</a>
</h1>
</header>
<date class="post-meta meta-date">
2020年12月14日
</date>
<div class="post-meta">
<span>|</span>
<span class="meta-category"><a href='/categories/Golang'>Golang</a></span>
</div>
<div class="post-content">
背景 envoy proto 生成依赖bazel 等工具,需要从google code仓库拉代码,国内编译比较麻烦, 所以cache了构建bazel 环境需要的基础镜像,方便proto生成,免得每次都要从头安装依赖,节省时间,提高效率。 用法 Dockerfile FROM envoyproxy/envoy-build-ubuntu:c666a8ebe472c66038fd07772ab96ed48e621883 RUN git clone https://github.com/envoyproxy/envoy source && \ cd /source && \ git checkout c0ab3a4374144728c1e193fc2d43951ed36ccdb7 RUN ./tools/api/generate_go_protobuf.py || true WORKDIR /source 打包好的docker image registry.cn-hangzhou.aliyuncs.com/lxd/envoy-generate-cache:v1……
</div>
<p class="readmore"><a href="https://lxd5866.github.io/post/2020-12-14-1/">阅读全文</a></p>
</article>
<article class="post">
<header>
<h1 class="post-title">
<a href="https://lxd5866.github.io/post/2020-12-09-3/" title="Go插件plugin">Go插件plugin</a>
</h1>
</header>
<date class="post-meta meta-date">
2020年12月9日
</date>
<div class="post-meta">
<span>|</span>
<span class="meta-category"><a href='/categories/Golang'>Golang</a></span>
</div>
<div class="post-content">
Go插件plugin 背景 项目需要在不给项目源码的情况下,给三方做拓展。实现方案是通过配置,加载plugin,调用约定好的方法实现特定的业务场景 原文地址 1. Go plugin是什么 Go 1.8版本开始提供了一个创建共享库的新工具,称为 Plugins. A plugin is a Go main package with exported functions and variables that has been built with: go build -buildmode=plugin Plugin插件……
</div>
<p class="readmore"><a href="https://lxd5866.github.io/post/2020-12-09-3/">阅读全文</a></p>
</article>
<article class="post">
<header>
<h1 class="post-title">
<a href="https://lxd5866.github.io/post/2020-12-07-1/" title="helm3 和 kustomize ">helm3 和 kustomize </a>
</h1>
</header>
<date class="post-meta meta-date">
2020年12月7日
</date>
<div class="post-meta">
<span>|</span>
<span class="meta-category"><a href='/categories/k8s'>k8s</a></span>
</div>
<div class="post-content">
helm3 kustomize 背景 之前一直用的时kustomize 管理 yaml,而不太喜欢使用helm,因为感觉它对外对外是一个黑盒,用起来不太放心。 而istio自 1.8 版本开始,重新添加 helm3为默认的管理工具,最近在看的 openkruise 也是使用helm管理,所以还是决定花点时间看一下。……
</div>
<p class="readmore"><a href="https://lxd5866.github.io/post/2020-12-07-1/">阅读全文</a></p>
</article>
<article class="post">
<header>
<h1 class="post-title">
<a href="https://lxd5866.github.io/post/2020-12-09-1/" title="k8s Docker Runtime架构">k8s Docker Runtime架构</a>
</h1>
</header>
<date class="post-meta meta-date">
2020年12月7日
</date>
<div class="post-meta">
<span>|</span>
<span class="meta-category"><a href='/categories/k8s'>k8s</a></span>
</div>
<div class="post-content">
背景 k8s 1.20 release note中有个改变的针对Dockershim的,自这个版本起不在推荐使用docker做runtime。 Docker as an underlying runtime is being deprecated. Docker-produced images will continue to work in your cluster with all runtimes, as they always have. The Kubernetes community has written a blog post about this in detail with a dedicated FAQ page for it. 所以详细了解了一下 Dockershim 的历史。 本文链接:https://blog.csdn.net/……
</div>
<p class="readmore"><a href="https://lxd5866.github.io/post/2020-12-09-1/">阅读全文</a></p>
</article>
<article class="post">
<header>
<h1 class="post-title">
<a href="https://lxd5866.github.io/post/2020-12-04-1/" title="git 代理">git 代理</a>
</h1>
</header>
<date class="post-meta meta-date">
2020年12月4日
</date>
<div class="post-meta">
<span>|</span>
<span class="meta-category"><a href='/categories/k8s'>k8s</a></span>
</div>
<div class="post-content">
git 代理设置 背景 下载github资源时,会因为墙和dns等原因导致git下载速度感人,游戏体验极差。 分辨需要设置的代理 HTTP 形式: git clone https://github.com/owner/git.git SSH 形式: git clone git@github.com:owner/git.git 一、HTTP 形式 走 HTTP 代理 git config –global http.proxy “http://127.0.0.1:8080” git config –global https.proxy “http://127.0.0.1:8080” 走 socks5 代理(如 Shadowsocks) git config –global http.proxy “socks5://127.0.0.1:1080” git config –global https.proxy “socks5://127.0.0.1:1080” 取消设置 git config –global –unset http.proxy git config –global –unset https.proxy 二、SS……
</div>
<p class="readmore"><a href="https://lxd5866.github.io/post/2020-12-04-1/">阅读全文</a></p>
</article>
<article class="post">
<header>
<h1 class="post-title">
<a href="https://lxd5866.github.io/post/2020-12-02-1/" title="minikube 加速">minikube 加速</a>
</h1>
</header>
<date class="post-meta meta-date">
2020年12月2日
</date>
<div class="post-content">
minikube 使用 & 加速 背景 minikibe 是由谷歌官方的,k8s本地模拟环境,主要用作 k8s 的环境测试工作。 minikube implements a local Kubernetes cluster on macOS, Linux, and Windows. minikube's primary goals are to be the best tool for local Kubernetes application development and to support all Kubernetes features that fit. 安装 brew install minikube brew 可以使用清华源加速 使用 一般情况下 1 2 3 4 5 6 7 //加速,建议使用自己的加速起,不推荐使用阿里源 //速度由梯子决定 export HTTP_PROXY=http://127.0.0.1:20880 export HTTPS_PROXY=http://127.0.0.1:20880 export……
</div>
<p class="readmore"><a href="https://lxd5866.github.io/post/2020-12-02-1/">阅读全文</a></p>
</article>
<article class="post">
<header>
<h1 class="post-title">
<a href="https://lxd5866.github.io/post/2020-11-24-1/" title="使用zap接收gin框架默认的日志并配置日志归档">使用zap接收gin框架默认的日志并配置日志归档</a>
</h1>
</header>
<date class="post-meta meta-date">
2020年11月24日
</date>
<div class="post-content">
| Golang 本文介绍了在基于gin框架开发的项目中如何配置并使用zap来接收并记录gin框架默认的日志和如何配置日志归档。 我们在基于gin框架开发项目时通常都会选择使用专业的日志库来记录项目中的日志,go语言常用的日志库有zap、logrus等。网上也有很多类似的教程,我之前也翻译过一篇……
</div>
<p class="readmore"><a href="https://lxd5866.github.io/post/2020-11-24-1/">阅读全文</a></p>
</article>
<ol class="page-navigator">
<li class="current">
<a href="https://lxd5866.github.io/">1</a>
</li>
<li >
<a href="https://lxd5866.github.io/page/2/">2</a>
</li>
<li class="next">
<a href="https://lxd5866.github.io/page/2/">下一页</a>
</li>
</ol>
</div>
<footer id="footer">
<div>
© 2020 <a href="https://lxd5866.github.io/">沧海的博客 By 沧海</a>
</div>
<br />
<div>
<div class="github-badge">
<a href="https://gohugo.io/" target="_black" rel="nofollow"><span class="badge-subject">Powered by</span><span class="badge-value bg-blue">Hugo</span></a>
</div>
<div class="github-badge">
<a href="https://github.com/flysnow-org/maupassant-hugo" target="_black"><span class="badge-subject">Theme</span><span class="badge-value bg-yellowgreen">Maupassant</span></a>
</div>
</div>
</footer>
<a id="rocket" href="#top"></a>
<script type="text/javascript" src='/js/totop.js?v=0.0.0' async=""></script>
<script type="text/javascript" src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" async></script>
</div>
<div id="secondary">
<section class="widget">
<form id="search" action='https://lxd5866.github.io/search/' method="get" accept-charset="utf-8" target="_blank" _lpchecked="1">
<input type="text" name="q" maxlength="20" placeholder="Search">
<input type="hidden" name="sitesearch" value="https://lxd5866.github.io/">
<button type="submit" class="submit icon-search"></button>
</form>
</section>
<section class="widget">
<h3 class="widget-title">最近文章</h3>
<ul class="widget-list">
<li>
<a href="https://lxd5866.github.io/post/2020-12-17-1/" title="2020 年 - 年度总结">2020 年 - 年度总结</a>
</li>
<li>
<a href="https://lxd5866.github.io/post/2020-12-14-3/" title="pilot 压力测试【小记】">pilot 压力测试【小记】</a>
</li>
<li>
<a href="https://lxd5866.github.io/post/2020-12-14-2/" title="Golang pprof 调试">Golang pprof 调试</a>
</li>
<li>
<a href="https://lxd5866.github.io/post/2020-12-14-1/" title="Envoy proto 生成 go-control-plane">Envoy proto 生成 go-control-plane</a>
</li>
<li>
<a href="https://lxd5866.github.io/post/2020-12-09-3/" title="Go插件plugin">Go插件plugin</a>
</li>
<li>
<a href="https://lxd5866.github.io/post/2020-12-07-1/" title="helm3 和 kustomize ">helm3 和 kustomize </a>
</li>
<li>
<a href="https://lxd5866.github.io/post/2020-12-09-1/" title="k8s Docker Runtime架构">k8s Docker Runtime架构</a>
</li>
<li>
<a href="https://lxd5866.github.io/post/2020-12-04-1/" title="git 代理">git 代理</a>
</li>
<li>
<a href="https://lxd5866.github.io/post/2020-12-02-1/" title="minikube 加速">minikube 加速</a>
</li>
<li>
<a href="https://lxd5866.github.io/post/2020-11-24-1/" title="使用zap接收gin框架默认的日志并配置日志归档">使用zap接收gin框架默认的日志并配置日志归档</a>
</li>
</ul>
</section>
<section class="widget">
<h3 class="widget-title"><a href='/categories/'>分类</a></h3>
<ul class="widget-list">
<li><a href="https://lxd5866.github.io/categories/Golang/">Golang (5)</a></li>
<li><a href="https://lxd5866.github.io/categories/istio/">istio (2)</a></li>
<li><a href="https://lxd5866.github.io/categories/k8s/">k8s (3)</a></li>
</ul>
</section>
<section class="widget">
<h3 class="widget-title"><a href='/tags/'>标签</a></h3>
<div class="tagcloud">
<a href="https://lxd5866.github.io/tags/CNI/">CNI</a>
<a href="https://lxd5866.github.io/tags/CRI/">CRI</a>
<a href="https://lxd5866.github.io/tags/Golang/">Golang</a>
<a href="https://lxd5866.github.io/tags/docker/">docker</a>
<a href="https://lxd5866.github.io/tags/go-plugin/">go-plugin</a>
<a href="https://lxd5866.github.io/tags/istio/">istio</a>
<a href="https://lxd5866.github.io/tags/k8s/">k8s</a>
<a href="https://lxd5866.github.io/tags/pilot/">pilot</a>
<a href="https://lxd5866.github.io/tags/plugn/">plugn</a>
<a href="https://lxd5866.github.io/tags/xds/">xds</a>
<a href="https://lxd5866.github.io/tags/%E5%8E%8B%E5%8A%9B%E6%B5%8B%E8%AF%95/">压力测试</a>
<a href="https://lxd5866.github.io/tags/%E5%B9%B4%E5%BA%A6%E6%80%BB%E7%BB%93/">年度总结</a>
</div>
</section>
<section class="widget">
<h3 class="widget-title">友情链接</h3>
<ul class="widget-list">
<li>
<a target="_blank" href="mailto:lxd5866@gmail.com" title="联系我">邮箱</a>
</li>
<li>
<a target="_blank" href="https://github.com/lxd5866" title="github">github</a>
</li>
</ul>
</section>
<section class="widget">
<h3 class="widget-title">其它</h3>
<ul class="widget-list">
<li><a href="https://lxd5866.github.io/index.xml">文章 RSS</a></li>
</ul>
</section>
</div>
</div>
</div>
</div>
</body>
</html>