Skip to content

Commit 9d71a35

Browse files
committed
清明节更新
1 parent 3765ae9 commit 9d71a35

File tree

1,035 files changed

+8252
-8387
lines changed

Some content is hidden

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

1,035 files changed

+8252
-8387
lines changed

container/container/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
<a xmlns="" href="http://cn.linkedin.com/in/netkiller/">Linkedin</a> |
1515
<a xmlns="" href="https://www.youtube.com/user/bg7nyt/videos">Youtube</a> |
1616
<a xmlns="" href="//www.netkiller.cn/home/donations.html">打赏(Donations)</a> |
17-
<a xmlns="" href="//www.netkiller.cn/home/about.html">About</a><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">第 11 章 netkiller 容器编排工具</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="../kubernetes/rancher/rancher.faq.html">上一页</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="netkiller.docker.html">下一页</a></td></tr></table><hr /></div><table xmlns=""><tr><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;repo=netkiller.github.io&amp;type=watch&amp;count=true&amp;size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;repo=netkiller.github.io&amp;type=fork&amp;count=true&amp;size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;type=follow&amp;count=true&amp;size=large" height="30" width="240" frameborder="0" scrolling="0" style="width:240px; height: 30px;" allowTransparency="true"></iframe></td><td></td><td><a href="https://zhuanlan.zhihu.com/netkiller"><img src="/images/logo/zhihu-card-default.svg" height="25" /></a></td><td valign="middle"><a href="https://zhuanlan.zhihu.com/netkiller">知乎专栏</a><a href="https://www.zhihu.com/club/1241768772601950208">多维度架构</a></td><td></td><td></td><td></td><td></td></tr></table><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="index"></a>第 11 章 netkiller 容器编排工具</h1></div></div></div><div class="toc"><p><strong>目录</strong></p><dl class="toc"><dt><span class="section"><a href="index.html#idm40120058640">11.1. 安装 netkiller-devops</a></span></dt><dt><span class="section"><a href="netkiller.docker.html">11.2. 使用 python 优雅地编排 Docker 容器</a></span></dt><dd><dl><dt><span class="section"><a href="netkiller.docker.html#idm40120050352">11.2.1. 安装依赖库</a></span></dt><dt><span class="section"><a href="netkiller.docker.html#idm40120048064">11.2.2. 创建一个 Services </a></span></dt><dt><span class="section"><a href="netkiller.docker.html#idm40120043520">11.2.3. 创建 Composes</a></span></dt><dt><span class="section"><a href="netkiller.docker.html#idm40120032224">11.2.4. 容器管理</a></span></dt><dt><span class="section"><a href="netkiller.docker.html#idm40120027328">11.2.5. 演示例子</a></span></dt><dt><span class="section"><a href="netkiller.docker.html#idm40120024624">11.2.6. 使用 Python 编排 Dockerfile</a></span></dt><dt><span class="section"><a href="netkiller.docker.html#idm40120024496">11.2.7. </a></span></dt><dt><span class="section"><a href="netkiller.docker.html#idm40120016768">11.2.8. logstash</a></span></dt></dl></dd><dt><span class="section"><a href="netkiller.kubernetes.html">11.3. 使用 Python 优雅地编排 Kubernetes</a></span></dt><dd><dl><dt><span class="section"><a href="netkiller.kubernetes.html#idm40120014016">11.3.1. 快速演示编排Nginx</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#idm40120002256">11.3.2. 创建命名空间</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#idm40120000448">11.3.3. ConfigMap/Secret 编排演示</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#idm40120000192">11.3.4. Pod 挂载 ConfigMap 编排演示</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#idm40119987360">11.3.5. Pod 挂载 ConfigMap 设置环境变量</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#netkiller.ingress.ssl">11.3.6. Ingress 挂载 SSL 证书</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#StatefulSet">11.3.7. StatefulSet 部署 Redis</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#StorageClass">11.3.8. StorageClass</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#netkiller.mysql">11.3.9. 部署 MySQL 到 kubernetes</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#netkiller.mongodb">11.3.10. MongoDB</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#netkiller.nacos">11.3.11. Nacos</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#netkiller.redis">11.3.12. Redis</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#kube-explorer">11.3.13. Kubernetes 部署 kube-explorer 图形化界面</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#netiller.elk">11.3.14. ELK</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#sonarqube">11.3.15. sonarqube</a></span></dt></dl></dd></dl></div>
17+
<a xmlns="" href="//www.netkiller.cn/home/about.html">About</a><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">第 11 章 netkiller 容器编排工具</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="../kubernetes/rancher/rancher.faq.html">上一页</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="netkiller.docker.html">下一页</a></td></tr></table><hr /></div><table xmlns=""><tr><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;repo=netkiller.github.io&amp;type=watch&amp;count=true&amp;size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;repo=netkiller.github.io&amp;type=fork&amp;count=true&amp;size=large" height="30" width="170" frameborder="0" scrolling="0" style="width:170px; height: 30px;" allowTransparency="true"></iframe></td><td><iframe src="//ghbtns.com/github-btn.html?user=netkiller&amp;type=follow&amp;count=true&amp;size=large" height="30" width="240" frameborder="0" scrolling="0" style="width:240px; height: 30px;" allowTransparency="true"></iframe></td><td></td><td><a href="https://zhuanlan.zhihu.com/netkiller"><img src="/images/logo/zhihu-card-default.svg" height="25" /></a></td><td valign="middle"><a href="https://zhuanlan.zhihu.com/netkiller">知乎专栏</a><a href="https://www.zhihu.com/club/1241768772601950208">多维度架构</a></td><td></td><td></td><td></td><td></td></tr></table><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="index"></a>第 11 章 netkiller 容器编排工具</h1></div></div></div><div class="toc"><p><strong>目录</strong></p><dl class="toc"><dt><span class="section"><a href="index.html#idm498907168832">11.1. 安装 netkiller-devops</a></span></dt><dt><span class="section"><a href="netkiller.docker.html">11.2. 使用 python 优雅地编排 Docker 容器</a></span></dt><dd><dl><dt><span class="section"><a href="netkiller.docker.html#idm498907160480">11.2.1. 安装依赖库</a></span></dt><dt><span class="section"><a href="netkiller.docker.html#idm498907157952">11.2.2. 创建一个 Services </a></span></dt><dt><span class="section"><a href="netkiller.docker.html#idm498907153216">11.2.3. 创建 Composes</a></span></dt><dt><span class="section"><a href="netkiller.docker.html#idm498907141264">11.2.4. 容器管理</a></span></dt><dt><span class="section"><a href="netkiller.docker.html#idm498907136240">11.2.5. 演示例子</a></span></dt><dt><span class="section"><a href="netkiller.docker.html#idm498907133040">11.2.6. 使用 Python 编排 Dockerfile</a></span></dt><dt><span class="section"><a href="netkiller.docker.html#idm498907132784">11.2.7. </a></span></dt><dt><span class="section"><a href="netkiller.docker.html#idm498907125104">11.2.8. logstash</a></span></dt></dl></dd><dt><span class="section"><a href="netkiller.kubernetes.html">11.3. 使用 Python 优雅地编排 Kubernetes</a></span></dt><dd><dl><dt><span class="section"><a href="netkiller.kubernetes.html#idm498907121792">11.3.1. 快速演示编排Nginx</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#idm498907109440">11.3.2. 创建命名空间</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#idm498907107408">11.3.3. ConfigMap/Secret 编排演示</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#idm498907107152">11.3.4. Pod 挂载 ConfigMap 编排演示</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#idm498907093824">11.3.5. Pod 挂载 ConfigMap 设置环境变量</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#netkiller.ingress.ssl">11.3.6. Ingress 挂载 SSL 证书</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#StatefulSet">11.3.7. StatefulSet 部署 Redis</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#StorageClass">11.3.8. StorageClass</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#netkiller.mysql">11.3.9. 部署 MySQL 到 kubernetes</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#netkiller.mongodb">11.3.10. MongoDB</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#netkiller.nacos">11.3.11. Nacos</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#netkiller.redis">11.3.12. Redis</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#kube-explorer">11.3.13. Kubernetes 部署 kube-explorer 图形化界面</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#netiller.elk">11.3.14. ELK</a></span></dt><dt><span class="section"><a href="netkiller.kubernetes.html#sonarqube">11.3.15. sonarqube</a></span></dt></dl></dd></dl></div>
1818

19-
<div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm40120058640"></a>11.1. 安装 netkiller-devops</h2></div></div></div>
19+
<div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="idm498907168832"></a>11.1. 安装 netkiller-devops</h2></div></div></div>
2020

2121
<pre class="screen">
2222

container/container/netkiller.docker.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
</pre>
7575
<p>怎么样,只是换了另一种写法,并没有难度。下面我们就系统学习,如何使用 python 编排 docker 容器</p>
7676
<p>实际上程序最终还是会转化做 docker-compose 脚本执行。这种写法的有点是更灵活,你可以在程序中使用 if, while, 链接数据库,等等操作,可以做更复杂的容器编排。</p>
77-
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm40120050352"></a>11.2.1. 安装依赖库</h3></div></div></div>
77+
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm498907160480"></a>11.2.1. 安装依赖库</h3></div></div></div>
7878

7979
<pre class="screen">
8080

@@ -98,7 +98,7 @@
9898

9999
</pre>
100100
</div>
101-
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm40120048064"></a>11.2.2. 创建一个 Services </h3></div></div></div>
101+
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm498907157952"></a>11.2.2. 创建一个 Services </h3></div></div></div>
102102

103103
<pre class="programlisting">
104104

@@ -233,7 +233,7 @@
233233

234234
</pre>
235235
</div>
236-
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm40120043520"></a>11.2.3. 创建 Composes</h3></div></div></div>
236+
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm498907153216"></a>11.2.3. 创建 Composes</h3></div></div></div>
237237

238238
<p>Services 对象创建服务,让服务工作还需要 Composes 对象。</p>
239239
<pre class="programlisting">
@@ -348,7 +348,7 @@
348348

349349
</pre>
350350
</div>
351-
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm40120032224"></a>11.2.4. 容器管理</h3></div></div></div>
351+
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm498907141264"></a>11.2.4. 容器管理</h3></div></div></div>
352352

353353
<p>Docker 对象是让我们摆脱 docker-compose 这个命令,它将接管 docker-compose 这个命令,进行自我管理。</p>
354354
<pre class="programlisting">
@@ -422,11 +422,11 @@
422422
</pre>
423423
<p>使用 -c 可以查看 compose yaml 脚本,使用 -e 可以导出 docker compose yaml</p>
424424
</div>
425-
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm40120027328"></a>11.2.5. 演示例子</h3></div></div></div>
425+
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm498907136240"></a>11.2.5. 演示例子</h3></div></div></div>
426426

427-
<div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="idm40120026688"></a>11.2.5.1. Redis 主从配置</h4></div></div></div>
427+
<div class="section"><div class="titlepage"><div><div><h4 class="title"><a id="idm498907135424"></a>11.2.5.1. Redis 主从配置</h4></div></div></div>
428428

429-
<div class="example"><a id="idm40120026048"></a><p class="title"><strong>例 11.1. Redis Master/Slave</strong></p><div class="example-contents">
429+
<div class="example"><a id="idm498907134640"></a><p class="title"><strong>例 11.1. Redis Master/Slave</strong></p><div class="example-contents">
430430

431431
<pre class="screen">
432432

@@ -479,7 +479,7 @@
479479
</div>
480480
</div>
481481

482-
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm40120024624"></a>11.2.6. 使用 Python 编排 Dockerfile</h3></div></div></div>
482+
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm498907133040"></a>11.2.6. 使用 Python 编排 Dockerfile</h3></div></div></div>
483483

484484
<p></p>
485485
<pre class="programlisting">
@@ -659,7 +659,7 @@
659659

660660
</pre>
661661
</div>
662-
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm40120024496"></a>11.2.7. </h3></div></div></div>
662+
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm498907132784"></a>11.2.7. </h3></div></div></div>
663663

664664
<pre class="programlisting">
665665

@@ -724,7 +724,7 @@
724724

725725
</pre>
726726
</div>
727-
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm40120016768"></a>11.2.8. logstash</h3></div></div></div>
727+
<div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="idm498907125104"></a>11.2.8. logstash</h3></div></div></div>
728728

729729
<pre class="screen">
730730

0 commit comments

Comments
 (0)