-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Conversation
Deploy preview for kubernetes-io-master-staging failed. Built with commit 5d39ebc https://app.netlify.com/sites/kubernetes-io-master-staging/deploys/5bf74f52f6d5ea224570ddca |
content/zh/docs/tutorials/k8s101.md
Outdated
<!-- | ||
For Kubernetes 101, we will cover kubectl, Pods, Volumes, and multiple containers. | ||
--> | ||
对于 Kubernetes 101,我们将涵盖 kubectl, Pods, Volumes 和多个容器这些内容。 |
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.
对于 => 关于
content/zh/docs/tutorials/k8s101.md
Outdated
--> | ||
## Pods | ||
|
||
在 Kubernetes 中,一组一个或者多个容器被称为 _Pod_ 。在一个 Pod 里的容器是在一起部署的,它们作为一组一起启动、停止和伸缩容。 |
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.
它们作为一组一起启动、停止和伸缩。
content/zh/docs/tutorials/k8s101.md
Outdated
--> | ||
#### Pod 定义 | ||
|
||
最简单的 Pod 定义描述了 Deployment 中的单个容器。例如,一个 nginx web 服务器的 Pod 可能被定义为: |
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.
一个 nginx web 服务器 Pod
content/zh/docs/tutorials/k8s101.md
Outdated
|
||
{{< codenew file="pods/simple-pod.yaml" >}} | ||
|
||
一个 Pod 定义是对预期状态的声明。预期状态在 Kubernetes 模型中是一个非常重要的概念。在这个系统中的很多东西都呈现为预期的状态,Kubernetes 保证现在的状态和预期的状态保持一致。例如,当您创建了一个 Pod 并且声明了将要在里面运行的容器。如果这些容器因为程序故障没有运行,Kubernetes 将继续创建或者重新创建这个 Pod 以使这个 Pod 达到期望状态。这个过程会一直持续直到您删除这个 Pod。 |
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.
一个 Pod 定义是对预期状态的声明
A Pod definition is a declaration of a desired state.
建议译为:
Pod 是对预期状态的声明的定义
content/zh/docs/tutorials/k8s101.md
Outdated
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/). |
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.
On most providers,在大多数提供商上
建议译为:
对于大多数服务提供商
content/zh/docs/tutorials/k8s101.md
Outdated
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/). |
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.
创建 busybox Pod => 创建一个 busybox Pod
content/zh/docs/tutorials/k8s101.md
Outdated
|
||
容器文件系统只在容器中存在。因此,如果您的应用程序的状态需要在重定位,重新启动和崩溃中存活,您将需要配置一些持久存储。 | ||
|
||
在此示例中,您可以创建具有命名卷的 Redis Pod,以及定义安装卷的路径的卷装入。 |
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.
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,并将数据卷挂载到指定的路径。
Thanks for the PR but I'm afraid we are removing this file from the English version: #10786 |
@tengqm , never mind, if this PR will be merged into release-1.12, that's fine. |
@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. |
@tengqm we change our translation policy. |
@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. |
/assign @zhangxiaoyu-zidif |
/lgtm |
[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 |
chinese translation for /docs/tutorials/k8s101.md