-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Conversation
请先稍后再review,我按照昨天要求,统一修改一下 |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
@shixiuguo: Closed this PR. In response to this:
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. |
/reopen |
@shixiuguo: Reopened this PR. In response to this:
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 |
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.
remove this line.
auto_generated: true | ||
--- | ||
<!-- | ||
--- |
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.
remove line 13 and 23.
|
||
|
||
|
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.
keep only one empty line is enough.
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.
请保留一个空行,删掉多余空行
## Ingress {#Ingress} | ||
|
||
Ingress 是允许入站连接到达后端定义的端点的规则集合。 | ||
Ingress 可以配置为向服务提供外部可访问的URL、负载平衡流量、终止SSL、提供基于名称的虚拟主机等。 |
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.
Ingress 可以配置为向服务提供外部可访问的URL、负载平衡流量、终止SSL、提供基于名称的虚拟主机等。 | |
Ingress 可以配置为向服务提供外部可访问的URL、负载平衡流量、终止 SSL、提供基于名称的虚拟主机等。 |
|
||
- **metadata** (<a href="{{< ref "../common-definitions/object-meta#ObjectMeta" >}}">ObjectMeta</a>) | ||
|
||
标准对象的元数据。 |
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.
标准对象的元数据。 | |
标准的对象元数据。 |
|
||
<a name="HTTPIngressRuleValue"></a> | ||
*HTTPIngressRuleValue 是指向后端的 http 选择器列表。在示例中 http://<host>/<path>?<searchpart> -> 其中url的部分对应 于RFC 3986,此资源将用于匹配最后一个 “/” 之后和第一个“ ?”之前的所有内容或 “#”。* | ||
<!-- |
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.
重新调整所有 <!--
和 -->
的缩进。下同。
|
||
Backend defines the referenced service endpoint to which the traffic will be forwarded to. | ||
--> | ||
- **rules.http.paths** ([]HTTPIngressPath), 必选 |
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.
前面加一个空行。
- **rules.http.paths** ([]HTTPIngressPath), 必选 | |
- **rules.http.paths** ([]HTTPIngressPath),必需 |
--> | ||
- **rules.http.paths** ([]HTTPIngressPath), 必选 | ||
|
||
*Atomic: 将在合并期间被替换* |
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.
*Atomic: 将在合并期间被替换* | |
**Atomic: 将在合并期间被替换** |
|
||
*Atomic: 将在合并期间被替换* | ||
|
||
将请求映射到后端的路径集合。. |
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.
将请求映射到后端的路径集合。. | |
将请求映射到后端的路径集合。 |
将请求映射到后端的路径集合。. | ||
|
||
<a name="HTTPIngressPath"></a> | ||
*HTTPIngressPath 将路径与后端关联。与路径匹配的传入 URL 将转发到后端。* |
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.
*HTTPIngressPath 将路径与后端关联。与路径匹配的传入 URL 将转发到后端。* | |
**HTTPIngressPath 将路径与后端关联。与路径匹配的传入 URL 将转发到后端。** |
@shixiuguo Still working on this? 2 weeks have passed. |
@shixiuguo If you are no longer working on this, we can close this one or hand it over to someone else. |
@shixiuguo Do you mind if someone else takes over this work if you are too busy to carry it on? |
我可以接着来,前一段时间总去医院,现在可以了,我可以接着来 |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
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.
现在的状况很糟糕。
|
||
|
||
|
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.
请保留一个空行,删掉多余空行
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。 |
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.
128、136 行前面都要加空行!!很重要
:80 用于 http | ||
:443 用于 https。 |
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.
:80 用于 http | |
:443 用于 https。 | |
- `:80` 用于 http | |
- `:443` 用于 https | |
传入请求在 IngressRuleValue 之前与主机匹配。 | ||
如果主机未指定, Ingress 将根据指定的 IngressRuleValue 规则路由所有流量。 | ||
|
||
主机可以是“精确“的,它是一个没有网络主机终止点的域名(例如 “foo.bar.com” )或“通配符”,它是一个以单个通配符标签为前缀的域名(例如 “*.foo.com”)。 |
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.
149 行之前加空行
通配符 “*” 必须单独显示为第一个 DNS 标签,并且仅与单个标签匹配。 | ||
您不能单独拥有通配符标签(例如,Host=“*”)。 | ||
请求将按以下方式与主机字段匹配: | ||
1.如果主机是精确的,则如果 http 主机标头等于主机,则请求与此规则匹配。 |
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.
1.如果主机是精确的,则如果 http 主机标头等于主机,则请求与此规则匹配。 | |
1. 如果 host 是精确匹配的,则如果 http `Host` 标头等于 host 值,则请求与此规则匹配。 |
|
||
|
||
|
||
## Operations {#Operations} |
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.
## Operations {#Operations} | |
## 操作 {#Operations} |
|
||
name of the Ingress | ||
--> | ||
- **name** (*路径参数*): string, 必需 |
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.
下同。
- **name** (*路径参数*): string, 必需 | |
- **name** (**路径参数**):string,必需 |
--> | ||
- **name** (*路径参数*): string, 必需 | ||
|
||
Ingress 名称 |
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.
Ingress 名称 | |
Ingress 的名称。 |
--> | ||
|
||
|
||
- **namespace** (*路径参数*): string, 必需 |
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.
- **namespace** (*路径参数*): string, 必需 | |
- **namespace** (**路径参数**):string,必需 |
#### Response | ||
--> | ||
|
||
#### 应答 |
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.
#### 应答 | |
#### 响应 |
/retitle [zh] Translate ingress-v1 API reference |
@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. |
CC @windsonsea, Here is another PR maybe you would like to take a look. |
ok, I will take this over and co-author it with @shixiuguo tonight. |
/close |
@tengqm: Closed this PR. In response to this:
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. |
#34646