diff --git a/content/zh-cn/docs/tasks/configure-pod-container/translate-compose-kubernetes.md b/content/zh-cn/docs/tasks/configure-pod-container/translate-compose-kubernetes.md index ddd4f65db6..f2add8e3c7 100644 --- a/content/zh-cn/docs/tasks/configure-pod-container/translate-compose-kubernetes.md +++ b/content/zh-cn/docs/tasks/configure-pod-container/translate-compose-kubernetes.md @@ -16,7 +16,7 @@ weight: 230 -Kompose 是什么?它是一个转换工具,可将 compose +Kompose 是什么?它是一个转换工具,可将 Compose (即 Docker Compose)所组装的所有内容转换成容器编排器(Kubernetes 或 OpenShift)可识别的形式。 @@ -435,7 +431,7 @@ INFO OpenShift file "result-imagestream.yaml" created -kompose 还支持为服务中的构建指令创建 buildconfig。 +Kompose 还支持为服务中的构建指令创建 buildconfig。 默认情况下,它使用当前 git 分支的 remote 仓库作为源仓库,使用当前分支作为构建的源分支。 你可以分别使用 ``--build-repo`` 和 ``--build-branch`` 选项指定不同的源仓库和分支。 @@ -470,7 +466,7 @@ The default `kompose` transformation will generate Kubernetes [Deployments](/doc [Deployment](/zh-cn/docs/concepts/workloads/controllers/deployment/) 和 [Service](/zh-cn/docs/concepts/services-networking/service/) 对象。 你可以选择通过 `-j` 参数生成 json 格式的对象。 -你也可以替换生成 [Replication Controllers](/zh-cn/docs/concepts/workloads/controllers/replicationcontroller/) 对象、 +你也可以替换生成 [ReplicationController](/zh-cn/docs/concepts/workloads/controllers/replicationcontroller/) 对象、 [DaemonSet](/zh-cn/docs/concepts/workloads/controllers/daemonset/) 或 [Helm](https://github.com/helm/helm) Chart。 @@ -504,7 +500,7 @@ INFO Kubernetes file "web-replicationcontroller.yaml" created -`*-replicationcontroller.yaml` 文件包含 Replication Controller 对象。 +`*-replicationcontroller.yaml` 文件包含 ReplicationController 对象。 如果你想指定副本数(默认为 1),可以使用 `--replicas` 参数: `kompose convert --replication-controller --replicas 3` @@ -559,7 +555,7 @@ docker-compose -这个 Chart 结构旨在为构建 Helm Chart 提供框架。 +这个 Chart 结构旨在为构建 Helm Chart 时提供框架。 -当前支持的选项有: +当前支持的选项有: | 键 | 值 | |------------------------|-------------------------------------| @@ -665,7 +661,6 @@ If you want to create normal pods without controllers you can use `restart` cons | `on-failure` | Pod | `OnFailure` | | `no` | Pod | `Never` | --> - | `docker-compose` `restart` | 创建的对象 | Pod `restartPolicy` | |----------------------------|-------------------|---------------------| | `""` | 控制器对象 | `Always` |