This commit is contained in:
huanqing.shao
2021-04-05 13:09:28 +08:00
parent 086cf27744
commit c0cdcc0de0
163 changed files with 631 additions and 293 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 KiB

View File

@ -103,7 +103,7 @@ Kubernetes 对 Pod 进行调度时,以当时集群中各节点的可用资源
| NFS Server | 172.17.216.82 | 请使用您自己的NFS服务的IP地址 |
| NFS Path | /root/nfs_root | 请使用您自己的NFS服务所共享的路径 |
![Kubernetes教程_在Kuboard中创建NFS_StorageClass存储类](./nfs.assets/image-20191003183534076.png)
![Kubernetes教程_在Kuboard中创建NFS_StorageClass存储类](./nfs.assets/image-20210404194644944.png)
* 在场景中使用存储类

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

View File

@ -167,7 +167,7 @@ Kubernetes 支持 20 种存储卷类型(可参考 [Types of Persistent Volumes
在 Kuboard 中查看 PersistentVolume 的界面如下图所示:
![Kubernetes教程存储卷PersistentVolume-在Kuboard中查看](./pv.assets/image-20200913194907655.png)
![Kubernetes教程存储卷PersistentVolume-在Kuboard中查看](./pv.assets/image-20210404180415333.png)
PersistentVolume 字段描述如下表所示:
@ -187,7 +187,7 @@ PersistentVolume 字段描述如下表所示:
在 Kuboard 中查看存储卷声明的界面如下图所示:
![Kubernetes教程存储卷PersistentVolume-在Kuboard中查看存储卷声明PersistentVolumeClaims](./pv.assets/image-20200913195026464.png)
![Kubernetes教程存储卷PersistentVolume-在Kuboard中查看存储卷声明PersistentVolumeClaims](./pv.assets/image-20210404180516539.png)
| 字段名称 | 可选项/备注 |
| --------------------- | ------------------------------------------------------------ |
@ -202,4 +202,4 @@ PersistentVolume 字段描述如下表所示:
在您完成存储卷声明的定义后,您可以在 Kuboard 工作复杂编辑器的 ***数据卷 Volume*** 区域引用该存储卷声明,如下图所示:
![Kubernetes教程存储卷PersistentVolume-使用存储卷声明](./pv.assets/image-20200913195201062.png)
![Kubernetes教程存储卷PersistentVolume-使用存储卷声明](./pv.assets/image-20210404180628506.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 194 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

View File

@ -47,7 +47,7 @@ Kuboard 支持的存储类的种类如下:
在 Kuboard 中查看存储类,如下图所示:
![Kubernetes教程在Kuboard中查看存储类](./storage-class.assets/image-20200913194251730.png)
![Kubernetes教程在Kuboard中查看存储类](./storage-class.assets/image-20210404180855976.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

View File

@ -60,9 +60,9 @@ spec:
同一个 volumeMounts 中 `subPath` 字段和 `subPathExpr` 字段不能同时使用。
> 在Kuboard界面中如果工作负载编辑器中挂载点的 subPath/subPathExpr 字段中包含 `$`,则 Kuboard 认为该字段为 subPathExpr否则被认为是 subPath。例如下图中的 $(podName) 将被认为是 subPathExpr <Badge type="default">Kuboard v1.0.6-beta.1</Badge>
> 在Kuboard界面中如果工作负载编辑器中挂载点的 subPath/subPathExpr 字段中包含 `$`,则 Kuboard 认为该字段为 subPathExpr否则被认为是 subPath。例如下图中的 $(podName) 将被认为是 subPathExpr <Badge type="default">Kuboard v3.1.1.0</Badge>
>
> ![./image-20200101173914313](./volume-mount-point.assets/image-20200101173914313.png)
> ![image-20210404194435754](./volume-mount-point.assets/image-20210404194435754.png)
如下面的例子,该 Pod 使用 `subPathExpr` 在 hostPath 数据卷 `/var/log/pods` 中创建了一个目录 `pod1`该参数来自于Pod的名字。此时宿主机目录 `/var/log/pods/pod1` 挂载到了容器的 `/logs` 路径:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

View File

@ -60,7 +60,9 @@ Docker 里同样也存在一个 volume数据卷的概念但是 docker
:::
![Kubernetes教程数据卷Volume-概念结构](./volume.assets/image-20190904194501941.png)
![Kubernetes教程数据卷Volume-概念结构](./volume.assets/image-20210404180050704.png)
## 数据卷的类型