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] Translate ingress-v1 API reference #34654

Closed
wants to merge 3 commits into from

Conversation

shixiuguo
Copy link
Contributor

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jun 28, 2022
@k8s-ci-robot k8s-ci-robot requested a review from chenxuc June 28, 2022 02:10
@k8s-ci-robot k8s-ci-robot added the language/zh Issues or PRs related to Chinese language label Jun 28, 2022
@k8s-ci-robot k8s-ci-robot added the sig/docs Categorizes an issue or PR as relevant to SIG Docs. label Jun 28, 2022
@shixiuguo
Copy link
Contributor Author

请先稍后再review,我按照昨天要求,统一修改一下

@netlify
Copy link

netlify bot commented Jun 28, 2022

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 659045b
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-io-main-staging/deploys/62e22cbfe6a9090008234234
😎 Deploy Preview https://deploy-preview-34654--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@k8s-ci-robot
Copy link
Contributor

@shixiuguo: Closed this PR.

In response to this:

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@shixiuguo
Copy link
Contributor Author

/reopen

@k8s-ci-robot k8s-ci-robot reopened this Jul 1, 2022
@k8s-ci-robot
Copy link
Contributor

@shixiuguo: Reopened this PR.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

description: "Ingress 是允许入站连接到达后端定义的端点的规则集合。"
title: "Ingress"
weight: 4
auto_generated: true
Copy link
Contributor

Choose a reason for hiding this comment

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

remove this line.

auto_generated: true
---
<!--
---
Copy link
Contributor

Choose a reason for hiding this comment

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

remove line 13 and 23.

Comment on lines +25 to +27



Copy link
Contributor

Choose a reason for hiding this comment

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

keep only one empty line is enough.

Copy link
Contributor

Choose a reason for hiding this comment

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

请保留一个空行,删掉多余空行

## Ingress {#Ingress}

Ingress 是允许入站连接到达后端定义的端点的规则集合。
Ingress 可以配置为向服务提供外部可访问的URL、负载平衡流量、终止SSL、提供基于名称的虚拟主机等。
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Ingress 可以配置为向服务提供外部可访问的URL、负载平衡流量、终止SSL、提供基于名称的虚拟主机等。
Ingress 可以配置为向服务提供外部可访问的URL、负载平衡流量、终止 SSL、提供基于名称的虚拟主机等。


- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>)

标准对象的元数据。
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
标准对象的元数据
标准的对象元数据


<a name="HTTPIngressRuleValue"></a>
*HTTPIngressRuleValue 是指向后端的 http 选择器列表。在示例中 http://<host>/<path>?<searchpart> -> 其中url的部分对应 于RFC 3986,此资源将用于匹配最后一个 “/” 之后和第一个“ ?”之前的所有内容或 “#”。*
<!--
Copy link
Contributor

Choose a reason for hiding this comment

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

重新调整所有 <!----> 的缩进。下同。


Backend defines the referenced service endpoint to which the traffic will be forwarded to.
-->
- **rules.http.paths** ([]HTTPIngressPath), 必选
Copy link
Contributor

Choose a reason for hiding this comment

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

前面加一个空行。

Suggested change
- **rules.http.paths** ([]HTTPIngressPath), 必选
- **rules.http.paths** ([]HTTPIngressPath),必需

-->
- **rules.http.paths** ([]HTTPIngressPath), 必选

*Atomic: 将在合并期间被替换*
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
*Atomic: 将在合并期间被替换*
**Atomic: 将在合并期间被替换**


*Atomic: 将在合并期间被替换*

将请求映射到后端的路径集合。.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
将请求映射到后端的路径集合。.
将请求映射到后端的路径集合。

将请求映射到后端的路径集合。.

<a name="HTTPIngressPath"></a>
*HTTPIngressPath 将路径与后端关联。与路径匹配的传入 URL 将转发到后端。*
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
*HTTPIngressPath 将路径与后端关联。与路径匹配的传入 URL 将转发到后端。*
**HTTPIngressPath 将路径与后端关联。与路径匹配的传入 URL 将转发到后端。**

@tengqm
Copy link
Contributor

tengqm commented Jul 17, 2022

@shixiuguo Still working on this? 2 weeks have passed.

@tengqm
Copy link
Contributor

tengqm commented Jul 25, 2022

@shixiuguo If you are no longer working on this, we can close this one or hand it over to someone else.

@tengqm
Copy link
Contributor

tengqm commented Jul 27, 2022

@shixiuguo Do you mind if someone else takes over this work if you are too busy to carry it on?

@shixiuguo
Copy link
Contributor Author

@shixiuguo Do you mind if someone else takes over this work if you are too busy to carry it on?

我可以接着来,前一段时间总去医院,现在可以了,我可以接着来

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign howieyuen for approval by writing /assign @howieyuen in a comment. For more information see:The Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

Copy link
Contributor

@tengqm tengqm left a comment

Choose a reason for hiding this comment

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

现在的状况很糟糕。

Comment on lines +25 to +27



Copy link
Contributor

Choose a reason for hiding this comment

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

请保留一个空行,删掉多余空行

Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.
-->
主机是 RFC 3986 定义的网络主机的完全限定域名。请注意以下与 RFC 3986 中定义的 URI 的“主机”部分的偏差:
1.不允许 IP。当前 IngressRuleValue 只能应用于父 Ingress Spec 中的 IP。
Copy link
Contributor

Choose a reason for hiding this comment

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

128、136 行前面都要加空行!!很重要

Comment on lines +140 to +141
:80 用于 http
:443 用于 https。
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
:80 用于 http
:443 用于 https。
- `:80` 用于 http
- `:443` 用于 https

传入请求在 IngressRuleValue 之前与主机匹配。
如果主机未指定, Ingress 将根据指定的 IngressRuleValue 规则路由所有流量。

主机可以是“精确“的,它是一个没有网络主机终止点的域名(例如 “foo.bar.com” )或“通配符”,它是一个以单个通配符标签为前缀的域名(例如 “*.foo.com”)。
Copy link
Contributor

Choose a reason for hiding this comment

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

149 行之前加空行

通配符 “*” 必须单独显示为第一个 DNS 标签,并且仅与单个标签匹配。
您不能单独拥有通配符标签(例如,Host=“*”)。
请求将按以下方式与主机字段匹配:
1.如果主机是精确的,则如果 http 主机标头等于主机,则请求与此规则匹配。
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
1.如果主机是精确的,则如果 http 主机标头等于主机,则请求与此规则匹配。
1. 如果 host 是精确匹配的,则如果 http `Host` 标头等于 host 值,则请求与此规则匹配。




## Operations {#Operations}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
## Operations {#Operations}
## 操作 {#Operations}


name of the Ingress
-->
- **name** (*路径参数*): string, 必需
Copy link
Contributor

Choose a reason for hiding this comment

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

下同。

Suggested change
- **name** (*路径参数*): string, 必需
- **name** (**路径参数**):string必需

-->
- **name** (*路径参数*): string, 必需

Ingress 名称
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Ingress 名称
Ingress 的名称。

-->


- **namespace** (*路径参数*): string, 必需
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- **namespace** (*路径参数*): string, 必需
- **namespace** (**路径参数**):string必需

#### Response
-->

#### 应答
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
#### 应答
#### 响应

@tengqm
Copy link
Contributor

tengqm commented Jul 29, 2022

/retitle [zh] Translate ingress-v1 API reference

@k8s-ci-robot k8s-ci-robot changed the title [zh] Translate the the "en/docs/reference/kubernetes-api/service-resources/ingress-v1.md" [zh] Translate ingress-v1 API reference Jul 29, 2022
@tengqm
Copy link
Contributor

tengqm commented Aug 1, 2022

@shixiuguo If you are really too busy to push this forward, you can let someone else to take it over. It is fine for someone else to continue a stalled work. This is one of the oldest PRs we have in the queue.

@Sea-n
Copy link
Member

Sea-n commented Aug 2, 2022

CC @windsonsea,

Here is another PR maybe you would like to take a look.

@windsonsea
Copy link
Member

ok, I will take this over and co-author it with @shixiuguo tonight.

@tengqm
Copy link
Contributor

tengqm commented Aug 2, 2022

/close
Superseded by #35634

@k8s-ci-robot
Copy link
Contributor

@tengqm: Closed this PR.

In response to this:

/close
Superseded by #35634

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/zh Issues or PRs related to Chinese language sig/docs Categorizes an issue or PR as relevant to SIG Docs. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants