Skip to content

Commit

Permalink
update juicefs_runtime.md (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldd91 authored Oct 21, 2021
1 parent 0b35d18 commit 00969ea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/en/samples/juicefs_runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ spec:
EOF
```

> Note: demo refers to the Subpath of JuiceFS, which is the directory of the JuiceFS file system where users store data in.
> Attention:Only name and metaurl are required. If the juicefs has been formatted, you only need to fill in the name and metaurl.
Since JuiceFS uses local cache, the corresponding Dataset supports only one mount, and JuiceFS does not have UFS, name/path represents the subdirectory that needs to be mounted, and it will be mounted as the root directory into the container.
Expand Down Expand Up @@ -130,6 +131,7 @@ spec:
low: "0.1"
EOF
```
> Note: The smallest unit of quota in JuiceFS is the MiB
**Create JuiceFSRuntime**

Expand Down Expand Up @@ -165,7 +167,7 @@ Then, check the Dataset status again and find that it has been bound with JuiceF
```shell
$ kubectl get dataset jfsdemo
NAME UFS TOTAL SIZE CACHED CACHE CAPACITY CACHED PERCENTAGE PHASE AGE
jfsdemo 4.00KiB - - Bound 9m28s
jfsdemo 4.00KiB - 40.00GiB - Bound 9m28s
```

**Check Pod to be create**, the Pod uses the Dataset created above to specify the PVC with the same name.
Expand Down
4 changes: 3 additions & 1 deletion docs/zh/samples/juicefs_runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ spec:
EOF
```

> 说明:demo 指的是 JuiceFS 的 Subpath,是用户在 JuiceFS 文件系统中存储数据的目录
> 注意:只有 name 和 metaurl 为必填项,若 juicefs 已经 format 过,只需要填 name 和 metaurl 即可。
由于 JuiceFS 采用的是本地缓存,对应的 Dataset 只支持一个 mount,且 JuiceFS 没有 UFS,name/path 代表需要挂载的子目录,会作为根目录挂载到容器内。
Expand Down Expand Up @@ -128,6 +129,7 @@ spec:
low: "0.1"
EOF
```
> 注意:JuiceFS 中 quota 的最小单位是 MiB
**创建 JuiceFSRuntime 资源对象**

Expand Down Expand Up @@ -163,7 +165,7 @@ jfsdemo 6m13s
```shell
$ kubectl get dataset jfsdemo
NAME UFS TOTAL SIZE CACHED CACHE CAPACITY CACHED PERCENTAGE PHASE AGE
jfsdemo 4.00KiB - - Bound 9m28s
jfsdemo 4.00KiB - 40.00GiB - Bound 9m28s
```

**查看待创建的 Pod 资源对象**,其中 Pod 使用上面创建的 Dataset 的方式为指定同名的 PVC。
Expand Down

0 comments on commit 00969ea

Please sign in to comment.