-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-4076. Translate CSI.md into Chinese #1299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9a4ba2d
HDDS-4076. Translate CSI.md into Chinese
maobaolong 547c75e
fix bad link
maobaolong 9575413
Update hadoop-hdds/docs/content/interface/CSI.zh.md
maobaolong 0762080
Update hadoop-hdds/docs/content/interface/CSI.zh.md
maobaolong c586124
add one space before/after the English words
maobaolong c12326c
Improve the translation and address comment suggestions.
maobaolong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| --- | ||
| title: CSI 协议 | ||
| weight: 3 | ||
| summary: Ozone 支持 容器存储接口 (CSI) 协议。你可以通过 Ozone CSI 挂载 Ozone 桶的方式使用 Ozone。 | ||
| --- | ||
|
|
||
| <!--- | ||
| Licensed to the Apache Software Foundation (ASF) under one or more | ||
| contributor license agreements. See the NOTICE file distributed with | ||
| this work for additional information regarding copyright ownership. | ||
| The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| (the "License"); you may not use this file except in compliance with | ||
| the License. You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| 容器存储接口 `Container Storage Interface` (CSI) 使存储供应商(SP)能够一次性开发一个插件,并让它跨多个容器编排工作。 | ||
|
|
||
| 获取更多 CSI 的信息,可以参考[SCI spec](https://github.com/container-storage-interface/spec/blob/master/spec.md) | ||
|
|
||
| Ozone CSI 是 CSI 的一种实现,它可以将 Ozone 用作容器的存储卷。 | ||
|
|
||
| ## 入门 | ||
|
|
||
| 首先,我们需要一个带有 s3gateway 的 Ozone 集群,并且它的 OM 和 s3gateway 的端口都可以对 CSI pod 可见, | ||
| 因为 CSIServer 将会访问 OM 来创建或者删除桶,同时 CSIServer 通过 goofys 创建一个可以访问 s3g 的挂载点来发布卷。 | ||
|
|
||
| 如果你没有一个运行在 Kubernetes 上的 Ozone 集群,你可以参考[Kubernetes]({{< ref "start/Kubernetes.zh.md" >}}) 来创建一个。 | ||
| 使用来自 `kubernetes/examples/ozone`的资源,你可以找到所有需要的 Kubernetes 资源来和指定的 CSI 运行在一起 | ||
| (参考 `kubernetes/examples/ozone/csi`) | ||
|
|
||
| 现在,使用如下命令,创建 CSI 相关的资源。 | ||
|
|
||
| ```bash | ||
| kubectl create -f /ozone/kubernetes/examples/ozone/csi | ||
| ``` | ||
|
|
||
| ## 创建 pv-test 并查看结果 | ||
|
|
||
| 通过执行以下命令,创建 pv-test 相关的资源。 | ||
|
|
||
| ```bash | ||
| kubectl create -f /ozone/kubernetes/examples/ozone/pv-test | ||
| ``` | ||
|
|
||
| 连接 pod scm-0 并在 /s3v/pvc* 桶中创建一个键值。 | ||
|
|
||
| ```bash | ||
| kubectl exec -it scm-0 bash | ||
| [hadoop@scm-0 ~]$ ozone sh bucket list s3v | ||
| { | ||
| "metadata" : { }, | ||
| "volumeName" : "s3v", | ||
| "name" : "pvc-861e2d8b-2232-4cd1-b43c-c0c26697ab6b", | ||
| "storageType" : "DISK", | ||
| "versioning" : false, | ||
| "creationTime" : "2020-06-11T08:19:47.469Z", | ||
| "encryptionKeyName" : null | ||
| } | ||
| [hadoop@scm-0 ~]$ ozone sh key put /s3v/pvc-861e2d8b-2232-4cd1-b43c-c0c26697ab6b/A LICENSE.txt | ||
| ``` | ||
|
|
||
| 现在,通过映射 `ozone-csi-test-webserver-7cbdc5d65c-h5mnn` 端口,我们可以使用浏览器展示其 UI 页面。 | ||
|
|
||
| ```bash | ||
| kubectl port-forward ozone-csi-test-webserver-7cbdc5d65c-h5mnn 8000:8000 | ||
| ``` | ||
|
|
||
| 最终,我们可以通过 `http://localhost:8000/` 看到结果 | ||
|
|
||
|  | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
miss spaces around kubernetes and CSI.
kubernetes资源来和指定的CSI运行I think we shoud use K in Kubernetes, although
kubernetesis sometimes used in original doc.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks for point it for me.