This commit is contained in:
huanqing.shao
2019-09-22 21:56:32 +08:00
parent b0dc40cd30
commit 1b69a42777
86 changed files with 371 additions and 47 deletions

View File

@ -1,4 +1,5 @@
---
vssueId: 9
layout: LearningLayout
description: Kubernetes免费中文教程目录
---

View File

@ -1,4 +1,5 @@
---
vssueId: 66
layout: LearningLayout
description: Kubernetes教程_高级篇_主要涉及日志采集_安全_监控_联邦等内容
---

View File

@ -1,4 +1,5 @@
---
vssueId: 21
layout: LearningLayout
description: Kubernetes教程_本文详细讲解了Kubernetes_Deployment的概念_并描述了如何使用kubectl_Kuboard创建一个Deployment
---

View File

@ -1,4 +1,5 @@
---
vssueId: 22
layout: LearningLayout
description: Kubernetes教程_本文介绍了如何使用kubectl_Kuboard查看和浏览Kubernetes上的节点_容器组_部署等信息_并依据这些信息作出问题诊断
---

View File

@ -1,4 +1,5 @@
---
vssueId: 23
layout: LearningLayout
description: Kubernetes教程_本文详细讲解了Kubernetes_Service的概念_并描述了如何使用kubectl_Kuboard创建一个Service_以使得部署在Kubernetes上的容器可以被访问
---

View File

@ -1,4 +1,5 @@
---
vssueId: 26
layout: LearningLayout
description: Kubernetes教程_以gif动图的形式形象的描述Kubernetes核心概念_本文将会简单介绍Kubernetes的核心概念_因为这些定义可以在Kubernetes的文档中找到_所以文章也会避免用大段的枯燥的文字介绍_相反_我们会使用一些图表其中一些是动画和示例来解释这些概念_我们发现一些概念比如Service如果没有图表的辅助就很难全面地理解_在合适的地方我们也会提供Kubernetes文档的链接以便读者深入学习
---

View File

@ -1,4 +1,5 @@
---
vssueId: 27
layout: LearningLayout
description: Kubernetes教程_本文为初学者介绍了一套最合适的Kubernetes入门教程_该教程源自于Kubernetes官方网站_作者对其进行了翻译_并根据初学者的理解情况做了适当的改写
---

View File

@ -1,4 +1,5 @@
---
vssueId: 24
layout: LearningLayout
description: Kubernetes教程_本文详细讲解了Kubernetes_Scale的概念_并描述了如何使用_kubectl_Kuboard_对一个应用程序进行伸缩操作
---

View File

@ -1,4 +1,5 @@
---
vssueId: 25
layout: LearningLayout
description: Kubernetes教程_本文详细讲解了Kubernetes_Rolling_Update_的概念_并描述了如何使用_kubectl_Kuboard_对一个应用程序执行滚动更新。
---

View File

@ -1,4 +1,5 @@
---
vssueId: 64
layout: LearningLayout
description: Kubernetes教程_在Kubernetes中将Pod容器组调度到指定的节点
---

View File

@ -1,4 +1,5 @@
---
vssueId: 63
layout: LearningLayout
description: Kubernetes教程_在Kubernetes中管理和分配容器的计算资源
---

View File

@ -1,4 +1,5 @@
---
vssueId: 62
layout: LearningLayout
description: Kubernetes教程_Kubernetes_ConfigMap可以将配置信息和容器镜像解耦_以使得容器化的应用程序可移植_本文提供了一系列的实例_解释如何通过Kuboard创建ConfigMap以及如何使用ConfigMap中的数据配置Pod容器组
---

View File

@ -1,4 +1,5 @@
---
vssueId: 65
layout: LearningLayout
description: Kubernetes教程_在Kubernetes中_配置和使用_Secret
---

View File

@ -1,4 +1,5 @@
---
vssueId: 60
layout: LearningLayout
description: Kubernetes教程_本文介绍了存储卷PersistentVolume_存储卷声明PersistentVolumeClaim的概念_他们的关系_以及如何使用
---

View File

@ -1,4 +1,5 @@
---
vssueId: 61
layout: LearningLayout
description: Kubernetes教程_本文介绍了存储类的概念及其使用
---

View File

@ -0,0 +1,49 @@
---
layout: LearningLayout
description: Kubernetes教程_本文介绍Kubernetes中Volume数据卷的挂载以及挂载传播MountPropagation的概念
---
# 数据卷-挂载
参考文档: Kubernetes 官网文档 [Volumes](https://kubernetes.io/docs/concepts/storage/volumes/)
## 容器内路径
## 权限
## 挂载传播
数据卷的挂载传播Mount Propagation由 Pod 的 `spec.containers[*].volumeMounts.mountPropagation` 字段控制。可选的取值有:
* **None** 默认值。在数据卷被挂载到容器之后,此数据卷不会再接受任何后续宿主机或其他容器挂载到该数据卷对应目录下的子目录的挂载。同样的,在容器中向该数据卷对应目录挂载新目录时,宿主机也不能看到。对应 Linux 的 `private` mount propagation 选项[Linux内核文档](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
* **HostToContainer**:在数据卷被挂载到容器之后,宿主机向该数据卷对应目录添加挂载时,对容器是可见的。对应 Linux 的 `rslave` mount propagation 选项 [Linux内核文档](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
* **Bidirectional**:在数据卷被挂载到容器之后,宿主机向该数据卷对应目录添加挂载时,对容器是可见的;同时,从容器中向该数据卷创建挂载,同样也对宿主机可见。对应 Linux 的 `rshared` mount propagation 选项 [Linux内核文档](https://www.kernel.org/doc/Documentation/filesystems/sharedsubtree.txt)
::: danger
**Bidirectional** mount propagation 选项隐藏风险。如果在容器内进行不合适的挂载,可能影响宿主机的操作系统正常执行,因此,只有 privileged 容器才可以使用该选项。使用此选项时,建议对 Linux 内核的行为有所熟悉。此外,使用 Bidirectional 选项时,任何由 Pod 中容器在对应数据卷目录创建的挂载必须在容器终止时销毁umounted
:::
### 额外配置
在部分系统中CoreOS、RedHat/Centos、UbuntuDocker 的 mount share 选项必须事先配置好,步骤如下:
* **编辑 Docker 的 `systemd` service 文件**,将 `MountFlags` 设定如下:
```
MountFlags=shared
```
**或者移除 `MountFlags=slave`**
* 重启 Docker 守护进程:
``` sh
sudo systemctl daemon-reload
sudo systemctl restart docker
```
## 数据卷
## 数据卷内子路径

View File

@ -1,4 +1,5 @@
---
vssueId: 59
layout: LearningLayout
description: Kubernetes教程_本文介绍Kubernetes中Volume数据卷的基本概念_用法以及支持的数据卷类型
---

View File

@ -1,4 +1,5 @@
---
vssueId: 28
layout: LearningLayout
description: Kubernetes教程_通过Kuboard配置Kubernetes_使用私有registry中的docker镜像
---

View File

@ -1,4 +1,5 @@
---
vssueId: 58
layout: LearningLayout
description: Kubernetes教程_在Kubernetes中_如何选择合适的网络插件CNI
---

View File

@ -1,4 +1,5 @@
---
vssueId: 56
layout: LearningLayout
description: Kubernetes教程_在Kubernetes中_通过Service连接应用程序
---

View File

@ -1,4 +1,5 @@
---
vssueId: 55
layout: LearningLayout
description: Kubernetes教程_本文介绍了Kubernetes中Service和Pod的DNS分配规则
---

View File

@ -1,4 +1,5 @@
---
vssueId: 57
layout: LearningLayout
description: Kubernetes教程_本文介绍Kubernetes_Ingress的概念_包括Ingress基本概念_如何配置Ingress_Controller_如何使用kubectl_Kuboard操作Ingress信息
---

View File

@ -1,4 +1,5 @@
---
vssueId: 53
layout: LearningLayout
description: Kubernetes教程_本文介绍了Kubernetes中服务发现的机制以及如何使用服务发现
---

View File

@ -1,4 +1,5 @@
---
vssueId: 54
layout: LearningLayout
description: Kubernetes教程_Kubernetes中发布Service的方式_ServiceType
---

View File

@ -1,4 +1,5 @@
---
vssueId: 52
layout: LearningLayout
description: Kubernetes教程_本文介绍了Kubernetes中服务发现的机制以及如何使用服务发现
---

View File

@ -1,4 +1,5 @@
---
vssueId: 31
layout: LearningLayout
description: Kubernetes教程_本文描述了Kubernetes_Pod中的初始化容器的概念_使用场景和使用方法_初始化容器是容器组中app容器启动之前执行的容器_可能包含setup脚本或其他工具进程
---

View File

@ -1,4 +1,5 @@
---
vssueId: 30
layout: LearningLayout
description: Kubernetes教程_本文描述了Kubernetes中Pod容器组的生命周期
---

View File

@ -1,4 +1,5 @@
---
vssueId: 29
layout: LearningLayout
description: Kubernetes教程_本文介绍Kubernetes中的最小可调度单元Pod容器组的概念以及如何使用容器组
---

View File

@ -1,4 +1,5 @@
---
vssueId: 51
layout: LearningLayout
description: 本文描述了 Kubernetes DaemonSet 的概念、行为及用法
---

View File

@ -1,4 +1,5 @@
---
vssueId: 49
layout: LearningLayout
description: 本文描述了 Kubernetes DaemonSet 的概念、行为及用法
---

View File

@ -1,4 +1,5 @@
---
vssueId: 47
layout: LearningLayout
description: 本文描述了 Kubernetes 中如何创建 DaemonSet
---

View File

@ -1,4 +1,5 @@
---
vssueId: 46
layout: LearningLayout
description: 本文描述了 Kubernetes DaemonSet 的概念、行为及用法
---

View File

@ -1,4 +1,5 @@
---
vssueId: 48
layout: LearningLayout
description: 本文描述了 Kubernetes DaemonSet 如何调度 Pod
---
@ -51,4 +52,3 @@ nodeAffinity:
| node.kubernetes.io/memory-pressure | NoSchedule | 1.8+ | |
| node.kubernetes.io/unschedulable | NoSchedule | 1.12+ | 默认调度器针对 DaemonSet 容器组,容忍节点的 `unschedulable `属性 |
| node.kubernetes.io/network-unavailable | NoSchedule | 1.12+ | 默认调度器针对 DaemonSet 容器组,在其使用 host network 时,容忍节点的 `network-unavailable` 属性 |

View File

@ -1,4 +1,5 @@
---
vssueId: 50
layout: LearningLayout
description: 本文描述了 Kubernetes DaemonSet 的概念、行为及用法
---

View File

@ -1,4 +1,5 @@
---
vssueId: 41
layout: LearningLayout
description: 本文描述了如何通过 Deployment 执行灰度发布(金丝雀发布)
---

View File

@ -1,4 +1,5 @@
---
vssueId: 40
layout: LearningLayout
description: 本文描述了如何在 Kubernetes 中清理 Deployment 中旧的 ReplicaSet
---

View File

@ -1,4 +1,5 @@
---
vssueId: 34
layout: LearningLayout
description: 本文描述了如何创建一个 Deployment如何理解 Deployment 各个字段,以及如何查看 Deployment 的创建结果
---

View File

@ -1,4 +1,5 @@
---
vssueId: 33
layout: LearningLayout
description: 本文介绍了 Kubernetes Deployment 的概念、行为及使用方法
---

View File

@ -1,4 +1,5 @@
---
vssueId: 38
layout: LearningLayout
description: 本文描述了如何在 Kubernetes 中暂停 Deployment 的更新,和继续 Deployment 的更新
---

View File

@ -1,4 +1,5 @@
---
vssueId: 36
layout: LearningLayout
description: 本文描述了如何在 Kubernetes 中回滚 Deployment
---

View File

@ -1,4 +1,5 @@
---
vssueId: 37
layout: LearningLayout
description: 本文描述了如何在 Kubernetes 中水平伸缩 Deployment scaling up / scaling down
---

View File

@ -1,4 +1,5 @@
---
vssueId: 39
layout: LearningLayout
description: 本文描述了如何在 Kubernetes 中查看 Deployment 的状态
---

View File

@ -1,4 +1,5 @@
---
vssueId: 35
layout: LearningLayout
description: 本文描述了如何在 Kubernetes 中更新 Deployment
---

View File

@ -1,4 +1,5 @@
---
vssueId: 43
layout: LearningLayout
description: 本文描述了 Kubernetes StatefulSet 的基本信息Components、Pod Selector、Pod Identity
---

View File

@ -1,4 +1,5 @@
---
vssueId: 42
layout: LearningLayout
description: 本文描述了 Kubernetes StatefulSet 的概念、行为及用法
---

View File

@ -1,4 +1,5 @@
---
vssueId: 44
layout: LearningLayout
description: 本文描述了 Kubernetes StatefulSet 的部署和伸缩
---

View File

@ -1,4 +1,5 @@
---
vssueId: 45
layout: LearningLayout
description: 本文描述了 Kubernetes StatefulSet 的更新
---

View File

@ -1,4 +1,5 @@
---
vssueId: 32
layout: LearningLayout
description: Kubernetes教程_本文介绍了Kubernetes_Controller控制器的概念以及控制器的种类
---

View File

@ -1,4 +1,5 @@
---
vssueId: 67
layout: LearningLayout
description: Kubernetes教程_本文描述了一个经典微服务参考架构_并且通过三个视图集群概览、名称空间、工作负载理解微服务与Kubernetes的映射关系。
---

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 KiB

View File

@ -1,4 +1,5 @@
---
vssueId: 69
layout: LearningLayout
description: Kubernetes教程_使用Kuboard在Kubernetes上部署Spring_Cloud微服务平台OCP_open_capacity_platform微服务能力开放平台
---
@ -8,7 +9,7 @@ description: Kubernetes教程_使用Kuboard在Kubernetes上部署Spring_Cloud微
## 使用 Kuboard 在 K8S 上部署 OCP
Kuboard网站将陆续连载如何使用 Kuboard 部署 OCP 的如下组件:
Kuboard 网站将陆续 **连载** 如何使用 Kuboard 部署 OCP 的如下组件:
* eureka-server
* auth-server
* user-center
@ -17,9 +18,13 @@ Kuboard网站将陆续连载如何使用 Kuboard 部署 OCP 的如下组件:
与 OCP 相关的问题,请加 OCP 的 QQ群 483725710
[进入 OCP 首页](https://gitee.com/owenwangwen/open-capacity-platform)
<a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=8d8ae84021c97e31010fd8e44f518e1129ebd3be9ee0c004ec2cf68e8860b6c2" onclick="openOutboundLink(this)">一键加入OCP社群 <img style="vertical-align: top;" border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="ocp&amp;cp微服务" title="ocp&amp;cp微服务"></a>
[进入 OCP 首页](https://gitee.com/owenwangwen/open-capacity-platform)
<p>
<img src="./index.assets/143151_36a5c07e_869801.png" style="max-width: 160px;" alt="Kubernetes教程_OCP_QQ群"></img>
</p>
## OCP 介绍
@ -75,6 +80,40 @@ Kuboard网站将陆续连载如何使用 Kuboard 部署 OCP 的如下组件:
- 基于docker的elk日志监控
- 基于docker的服务动态扩容
## 代码结构
<p>
<img src="./index.assets/214757_e3408bdc_869801.png" style="max-width: 720px;" alt="Kubernetes教程_OCP_代码结构"></img>
</p>
## 能力开放管理平台
![Kubernetes教程_OCP_能力开放管理平台](./index.assets/image-20190922181901564.png)
## APM 监控
![Kubernetes教程_OCP_APM监控](./index.assets/image-20190922181953050.png)
## 系统监控
![Kubernetes教程_OCP_系统监控](./index.assets/image-20190922182043859.png)
## 灰度发布
![Kubernetes教程_OCP_灰度发布](./index.assets/image-20190922182129758.png)
## 阿波罗配置中心
![Kubernetes教程_OCP_阿波罗配置中心](./index.assets/185527_3e2e61a9_1441068.jpeg)
## 用户权益
- 允许免费用于学习、毕设、公司项目、私活等。

View File

@ -1,4 +1,5 @@
---
vssueId: 68
layout: LearningLayout
description: Kubernetes教程_微服务参考架构_包含微服务运行时_构建及测试_部署及运维_监控及评估__设计和研发Kuboard的初心便源于此SpringCloud微服务参考架构。
---