Skip to content
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

zh-trans: /docs/tutorials/k8s101.md #11183

Merged
merged 1 commit into from
Nov 28, 2018

Conversation

pigletfly
Copy link
Member

chinese translation for /docs/tutorials/k8s101.md

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. language/zh Issues or PRs related to Chinese language labels Nov 22, 2018
@k8sio-netlify-preview-bot
Copy link
Collaborator

k8sio-netlify-preview-bot commented Nov 22, 2018

Deploy preview for kubernetes-io-master-staging failed.

Built with commit 5d39ebc

https://app.netlify.com/sites/kubernetes-io-master-staging/deploys/5bf74f52f6d5ea224570ddca

<!--
For Kubernetes 101, we will cover kubectl, Pods, Volumes, and multiple containers.
-->
对于 Kubernetes 101,我们将涵盖 kubectl, Pods, Volumes 和多个容器这些内容。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

对于 => 关于

-->
## Pods

在 Kubernetes 中,一组一个或者多个容器被称为 _Pod_ 。在一个 Pod 里的容器是在一起部署的,它们作为一组一起启动、停止和伸缩容。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

它们作为一组一起启动、停止和伸缩。

-->
#### Pod 定义

最简单的 Pod 定义描述了 Deployment 中的单个容器。例如,一个 nginx web 服务器的 Pod 可能被定义为:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一个 nginx web 服务器 Pod


{{< codenew file="pods/simple-pod.yaml" >}}

一个 Pod 定义是对预期状态的声明。预期状态在 Kubernetes 模型中是一个非常重要的概念。在这个系统中的很多东西都呈现为预期的状态,Kubernetes 保证现在的状态和预期的状态保持一致。例如,当您创建了一个 Pod 并且声明了将要在里面运行的容器。如果这些容器因为程序故障没有运行,Kubernetes 将继续创建或者重新创建这个 Pod 以使这个 Pod 达到期望状态。这个过程会一直持续直到您删除这个 Pod。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一个 Pod 定义是对预期状态的声明
A Pod definition is a declaration of a desired state.
建议译为:
Pod 是对预期状态的声明的定义

If the IP of the Pod is accessible, you can access its http endpoint with wget on port 80:
-->

在大多数提供商上,Pod IP 无法从外部访问。测试 Pod 是否工作的最简单方法是创建 busybox Pod 并且远程执行 exec 命令。有关更多信息,请参阅 [获取正在运行的容器的Shell](/docs/tasks/debug-application-cluster/get-shell-running-container/).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On most providers,在大多数提供商上
建议译为:
对于大多数服务提供商

If the IP of the Pod is accessible, you can access its http endpoint with wget on port 80:
-->

在大多数提供商上,Pod IP 无法从外部访问。测试 Pod 是否工作的最简单方法是创建 busybox Pod 并且远程执行 exec 命令。有关更多信息,请参阅 [获取正在运行的容器的Shell](/docs/tasks/debug-application-cluster/get-shell-running-container/).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

创建 busybox Pod => 创建一个 busybox Pod


容器文件系统只在容器中存在。因此,如果您的应用程序的状态需要在重定位,重新启动和崩溃中存活,您将需要配置一些持久存储。

在此示例中,您可以创建具有命名卷的 Redis Pod,以及定义安装卷的路径的卷装入。

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this example you can create a Redis Pod with a named volume, and a volume mount that defines the path to mount the Volume.
建议译为:
在此示例中,您将创建一个具有数据卷的 Redis Pod,并将数据卷挂载到指定的路径。

@tengqm
Copy link
Contributor

tengqm commented Nov 23, 2018

Thanks for the PR but I'm afraid we are removing this file from the English version: #10786

@zhangxiaoyu-zidif
Copy link
Contributor

@tengqm , never mind, if this PR will be merged into release-1.12, that's fine.

@tengqm
Copy link
Contributor

tengqm commented Nov 23, 2018

@zhangxiaoyu-zidif Don't think so. The 'master' branch for website repo is for 1.12. It will be archived soon when 1.13 is out (then master becomes 1.13). The Chinese version proposed to release-1.12 should match that English version IIUC.

@zhangxiaoyu-zidif
Copy link
Contributor

@tengqm we change our translation policy.
now we base on release-1.12 to translate, and then we will diff the 1.12 and 1.13 , we only translate the diff and merge it to release-1.13. we do not care about the master branch. Here the author should change his dest branch to release-1.12 not master.

@tengqm
Copy link
Contributor

tengqm commented Nov 23, 2018

@zhangxiaoyu-zidif Exactly. If this PR targets release-1.12 in the Chinese translation repo, and in the release-1.12 English repo, these articles disappeared, we will never be able to sync this two versions. The removal of the two files mentioned was merged into En master, which is the official 1.12 version under maintenance. So my suggestion would be that we save the effort to commit this to Cn 1.12. It will cause out of sync anyway.

@idealhack idealhack added tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. and removed tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. labels Nov 23, 2018
@pigletfly pigletfly changed the base branch from master to release-1.12 November 26, 2018 02:12
@pigletfly
Copy link
Member Author

/assign @zhangxiaoyu-zidif

@idealhack idealhack removed tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. labels Nov 28, 2018
@zhangxiaoyu-zidif
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 28, 2018
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zhangxiaoyu-zidif

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 28, 2018
@k8s-ci-robot k8s-ci-robot merged commit 49628d5 into kubernetes:release-1.12 Nov 28, 2018
@pigletfly pigletfly deleted the k8s-101 branch November 30, 2018 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/zh Issues or PRs related to Chinese language lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants