You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/zh-cn/docs/concepts/services-networking/ingress.md
+36-28Lines changed: 36 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,13 +54,13 @@ For clarity, this guide defines the following terms:
54
54
<!--
55
55
## What is Ingress?
56
56
57
-
[Ingress](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#ingress-v1beta1-networking-k8s-io) exposes HTTP and HTTPS routes from outside the cluster to
57
+
[Ingress](/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#ingress-v1-networking-k8s-io) exposes HTTP and HTTPS routes from outside the cluster to
58
58
{{< link text="services" url="/docs/concepts/services-networking/service/" >}} within the cluster.
59
59
Traffic routing is controlled by rules defined on the Ingress resource.
An Ingress may be configured to give Services externally-reachable URLs, load balance traffic, terminate SSL / TLS, and offer namebased virtual hosting. An [Ingress controller](/docs/concepts/services-networking/ingress-controllers) is responsible for fulfilling the Ingress, usually with a load balancer, though it may also configure your edge router or additional frontends to help handle the traffic.
76
+
An Ingress may be configured to give Services externally-reachable URLs, load balance traffic, terminate SSL / TLS, and offer name-based virtual hosting. An [Ingress controller](/docs/concepts/services-networking/ingress-controllers) is responsible for fulfilling the Ingress, usually with a load balancer, though it may also configure your edge router or additional frontends to help handle the traffic.
77
77
-->
78
78
Ingress 可为 Service 提供外部可访问的 URL、负载均衡流量、终止 SSL/TLS,以及基于名称的虚拟托管。
You must have an [ingress controller](/docs/concepts/services-networking/ingress-controllers) to satisfy an Ingress. Only creating an Ingress resource has no effect.
96
+
You must have an [Ingress controller](/docs/concepts/services-networking/ingress-controllers) to satisfy an Ingress. Only creating an Ingress resource has no effect.
97
97
-->
98
98
## 环境准备
99
99
@@ -121,7 +121,7 @@ Make sure you review your Ingress controller's documentation to understand the c
121
121
{{< /note >}}
122
122
123
123
<!--
124
-
## The Ingress Resource
124
+
## The Ingress resource
125
125
126
126
A minimal Ingress resource example:
127
127
-->
@@ -194,18 +194,23 @@ Each HTTP rule contains the following information:
194
194
* An optional host. In this example, no host is specified, so the rule applies to all inbound
195
195
HTTP traffic through the IP address specified. If a host is provided (for example,
196
196
foo.bar.com), the rules apply to that host.
197
-
* A list of paths (for example, `/testpath`), each of which has an associated backend defined with a `serviceName`
198
-
and `servicePort`. Both the host and path must match the content of an incoming request before the
199
-
load balancer directs traffic to the referenced Service.
197
+
* A list of paths (for example, `/testpath`), each of which has an associated
198
+
backend defined with a `service.name` and a `service.port.name` or
199
+
`service.port.number`. Both the host and path must match the content of an
200
+
incoming request before the load balancer directs traffic to the referenced
201
+
Service.
200
202
* A backend is a combination of Service and port names as described in the
201
-
[Service doc](/docs/concepts/services-networking/service/). HTTP (and HTTPS) requests to the
203
+
[Service doc](/docs/concepts/services-networking/service/) or a [custom resource backend](#resource-backend) by way of a {{< glossary_tooltip term_id="CustomResourceDefinition" text="CRD" >}}. HTTP (and HTTPS) requests to the
202
204
Ingress that match the host and path of the rule are sent to the listed backend.
203
205
-->
204
206
* 可选的 `host`。在此示例中,未指定 `host`,因此该规则适用于通过指定 IP 地址的所有入站 HTTP 通信。
0 commit comments