Skip to content

Commit fc70f1b

Browse files
authored
Merge pull request #35272 from windsonsea/gateyhf
[zh-cn] sync /blog/_posts/2022-07-13-gateway-api-in-beta.md
2 parents 9312b03 + 97856ab commit fc70f1b

File tree

1 file changed

+334
-0
lines changed

1 file changed

+334
-0
lines changed
Lines changed: 334 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,334 @@
1+
---
2+
layout: blog
3+
title: Kubernetes Gateway API 进入 Beta 阶段
4+
date: 2022-07-13
5+
slug: gateway-api-graduates-to-beta
6+
---
7+
<!--
8+
layout: blog
9+
title: Kubernetes Gateway API Graduates to Beta
10+
date: 2022-07-13
11+
slug: gateway-api-graduates-to-beta
12+
canonicalUrl: https://gateway-api.sigs.k8s.io/blog/2022/graduating-to-beta/
13+
-->
14+
15+
<!--
16+
**Authors:** Shane Utt (Kong), Rob Scott (Google), Nick Young (VMware), Jeff Apple (HashiCorp)
17+
-->
18+
**作者:** Shane Utt (Kong)、Rob Scott (Google)、Nick Young (VMware)、Jeff Apple (HashiCorp)
19+
20+
<!--
21+
We are excited to announce the v0.5.0 release of Gateway API. For the first
22+
time, several of our most important Gateway API resources are graduating to
23+
beta. Additionally, we are starting a new initiative to explore how Gateway API
24+
can be used for mesh and introducing new experimental concepts such as URL
25+
rewrites. We'll cover all of this and more below.
26+
-->
27+
我们很高兴地宣布 Gateway API 的 v0.5.0 版本发布。
28+
我们最重要的几个 Gateway API 资源首次进入 Beta 阶段。
29+
此外,我们正在启动一项新的倡议,探索如何将 Gateway API 用于网格,还引入了 URL 重写等新的实验性概念。
30+
下文涵盖了这部分内容和更多说明。
31+
32+
<!--
33+
## What is Gateway API?
34+
-->
35+
## 什么是 Gateway API?
36+
37+
<!--
38+
Gateway API is a collection of resources centered around [Gateway][gw] resources
39+
(which represent the underlying network gateways / proxy servers) to enable
40+
robust Kubernetes service networking through expressive, extensible and
41+
role-oriented interfaces that are implemented by many vendors and have broad
42+
industry support.
43+
-->
44+
Gateway API 是以 [Gateway][gw] 资源(代表底层网络网关/代理服务器)为中心的资源集合,
45+
Kubernetes 服务网络的健壮性得益于众多供应商实现、得到广泛行业支持且极具表达力、可扩展和面向角色的各个接口。
46+
47+
<!--
48+
Originally conceived as a successor to the well known [Ingress][ing] API, the
49+
benefits of Gateway API include (but are not limited to) explicit support for
50+
many commonly used networking protocols (e.g. `HTTP`, `TLS`, `TCP`, `UDP`) as
51+
well as tightly integrated support for Transport Layer Security (TLS). The
52+
`Gateway` resource in particular enables implementations to manage the lifecycle
53+
of network gateways as a Kubernetes API.
54+
-->
55+
Gateway API 最初被认为是知名 [Ingress][ing] API 的继任者,
56+
Gateway API 的好处包括(但不限于)对许多常用网络协议的显式支持
57+
(例如 `HTTP``TLS``TCP ``UDP`) 以及对传输层安全 (TLS) 的紧密集成支持。
58+
特别是 `Gateway` 资源能够实现作为 Kubernetes API 来管理网络网关的生命周期。
59+
60+
<!--
61+
If you're an end-user interested in some of the benefits of Gateway API we
62+
invite you to jump in and find an implementation that suits you. At the time of
63+
this release there are over a dozen [implementations][impl] for popular API
64+
gateways and service meshes and guides are available to start exploring quickly.
65+
-->
66+
如果你是对 Gateway API 的某些优势感兴趣的终端用户,我们邀请你加入并找到适合你的实现方式。
67+
值此版本发布之时,对于流行的 API 网关和服务网格有十多种[实现][impl],还提供了操作指南便于快速开始探索。
68+
69+
<!--
70+
[gw]:https://gateway-api.sigs.k8s.io/api-types/gateway/
71+
[ing]:https://kubernetes.io/docs/reference/kubernetes-api/service-resources/ingress-v1/
72+
[impl]:https://gateway-api.sigs.k8s.io/implementations/
73+
-->
74+
[gw]:https://gateway-api.sigs.k8s.io/api-types/gateway/
75+
[ing]:/zh-cn/docs/reference/kubernetes-api/service-resources/ingress-v1/
76+
[impl]:https://gateway-api.sigs.k8s.io/implementations/
77+
78+
<!--
79+
### Getting started
80+
-->
81+
### 入门
82+
83+
<!--
84+
Gateway API is an official Kubernetes API like
85+
[Ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/).
86+
Gateway API represents a superset of Ingress functionality, enabling more
87+
advanced concepts. Similar to Ingress, there is no default implementation of
88+
Gateway API built into Kubernetes. Instead, there are many different
89+
[implementations][impl] available, providing significant choice in terms of underlying
90+
technologies while providing a consistent and portable experience.
91+
-->
92+
Gateway API 是一个类似 [Ingress](/zh-cn/docs/concepts/services-networking/ingress/)
93+
的正式 Kubernetes API。Gateway API 代表了 Ingress 功能的一个父集,使得一些更高级的概念成为可能。
94+
与 Ingress 类似,Kubernetes 中没有内置 Gateway API 的默认实现。
95+
相反,有许多不同的[实现][impl]可用,在提供一致且可移植体验的同时,还在底层技术方面提供了重要的选择。
96+
97+
<!--
98+
Take a look at the [API concepts documentation][concepts] and check out some of
99+
the [Guides][guides] to start familiarizing yourself with the APIs and how they
100+
work. When you're ready for a practical application open the [implementations
101+
page][impl] and select an implementation that belongs to an existing technology
102+
you may already be familiar with or the one your cluster provider uses as a
103+
default (if applicable). Gateway API is a [Custom Resource Definition
104+
(CRD)][crd] based API so you'll need to [install the CRDs][install-crds] onto a
105+
cluster to use the API.
106+
-->
107+
查看 [API 概念文档][concepts] 并查阅一些[指南][guides]以开始熟悉这些 API 及其工作方式。
108+
当你准备好一个实用的应用程序时,
109+
请打开[实现页面][impl]并选择属于你可能已经熟悉的现有技术或集群提供商默认使用的技术(如果适用)的实现。
110+
Gateway API 是一个基于 [CRD][crd] 的 API,因此你将需要[安装 CRD][install-crds] 到集群上才能使用该 API。
111+
112+
<!--
113+
If you're specifically interested in helping to contribute to Gateway API, we
114+
would love to have you! Please feel free to [open a new issue][issue] on the
115+
repository, or join in the [discussions][disc]. Also check out the [community
116+
page][community] which includes links to the Slack channel and community meetings.
117+
-->
118+
如果你对 Gateway API 做贡献特别有兴趣,我们非常欢迎你的加入!
119+
你可以随时在仓库上[提一个新的 issue][issue],或[加入讨论][disc]
120+
另请查阅[社区页面][community]以了解 Slack 频道和社区会议的链接。
121+
122+
<!--
123+
[crd]:https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/
124+
[concepts]:https://gateway-api.sigs.k8s.io/concepts/api-overview/
125+
[guides]:https://gateway-api.sigs.k8s.io/guides/getting-started/
126+
[impl]:https://gateway-api.sigs.k8s.io/implementations/
127+
[install-crds]:https://gateway-api.sigs.k8s.io/guides/getting-started/#install-the-crds
128+
[issue]:https://github.com/kubernetes-sigs/gateway-api/issues/new/choose
129+
[disc]:https://github.com/kubernetes-sigs/gateway-api/discussions
130+
[community]:https://gateway-api.sigs.k8s.io/contributing/community/
131+
-->
132+
[crd]:/zh-cn/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/
133+
[concepts]:https://gateway-api.sigs.k8s.io/concepts/api-overview/
134+
[guides]:https://gateway-api.sigs.k8s.io/guides/getting-started/
135+
[impl]:https://gateway-api.sigs.k8s.io/implementations/
136+
[install-crds]:https://gateway-api.sigs.k8s.io/guides/getting-started/#install-the-crds
137+
[issue]:https://github.com/kubernetes-sigs/gateway-api/issues/new/choose
138+
[disc]:https://github.com/kubernetes-sigs/gateway-api/discussions
139+
[community]:https://gateway-api.sigs.k8s.io/contributing/community/
140+
141+
<!--
142+
## Release highlights
143+
144+
### Graduation to beta
145+
-->
146+
## 发布亮点
147+
148+
### 进入 Beta 阶段
149+
150+
<!--
151+
The `v0.5.0` release is particularly historic because it marks the growth in
152+
maturity to a beta API version (`v1beta1`) release for some of the key APIs:
153+
-->
154+
`v0.5.0` 版本特别具有历史意义,因为它标志着一些关键 API 成长至 Beta API 版本(`v1beta1`):
155+
156+
- [GatewayClass](https://gateway-api.sigs.k8s.io/api-types/gatewayclass/)
157+
- [Gateway](https://gateway-api.sigs.k8s.io/api-types/gateway/)
158+
- [HTTPRoute](https://gateway-api.sigs.k8s.io/api-types/httproute/)
159+
160+
<!--
161+
This achievement was marked by the completion of several graduation criteria:
162+
163+
- API has been [widely implemented][impl].
164+
- Conformance tests provide basic coverage for all resources and have multiple implementations passing tests.
165+
- Most of the API surface is actively being used.
166+
- Kubernetes SIG Network API reviewers have approved graduation to beta.
167+
-->
168+
这一成就的标志是达到了以下几个进入标准:
169+
170+
- API 已[广泛实现][impl]
171+
- 合规性测试基本覆盖了所有资源且可以让多种实现通过测试。
172+
- 大多数 API 接口正被积极地使用。
173+
- Kubernetes SIG Network API 评审团队已批准其进入 Beta 阶段。
174+
175+
<!--
176+
For more information on Gateway API versioning, refer to the [official
177+
documentation](https://gateway-api.sigs.k8s.io/concepts/versioning/). To see
178+
what's in store for future releases check out the [next steps](#next-steps)
179+
section.
180+
-->
181+
有关 Gateway API 版本控制的更多信息,请参阅[官方文档](https://gateway-api.sigs.k8s.io/concepts/versioning/)
182+
要查看未来版本的计划,请查看[下一步](#next-steps)
183+
184+
[impl]:https://gateway-api.sigs.k8s.io/implementations/
185+
186+
<!--
187+
### Release channels
188+
189+
This release introduces the `experimental` and `standard` [release channels][ch]
190+
which enable a better balance of maintaining stability while still enabling
191+
experimentation and iterative development.
192+
-->
193+
### 发布渠道
194+
195+
此版本引入了 `experimental``standard` [发布渠道][ch]
196+
这样能够更好地保持平衡,在确保稳定性的同时,还能支持实验和迭代开发。
197+
198+
<!--
199+
The `standard` release channel includes:
200+
201+
- resources that have graduated to beta
202+
- fields that have graduated to standard (no longer considered experimental)
203+
-->
204+
`standard` 发布渠道包括:
205+
206+
- 已进入 Beta 阶段的资源
207+
- 已进入 standard 的字段(不再被视为 experimental)
208+
209+
<!--
210+
The `experimental` release channel includes everything in the `standard` release
211+
channel, plus:
212+
213+
- `alpha` API resources
214+
- fields that are considered experimental and have not graduated to `standard` channel
215+
-->
216+
`experimental` 发布渠道包括 `standard` 发布渠道的所有内容,另外还有:
217+
218+
- `alpha` API 资源
219+
- 视为 experimental 且还未进入 `standard` 渠道的字段
220+
221+
<!--
222+
Release channels are used internally to enable iterative development with
223+
quick turnaround, and externally to indicate feature stability to implementors
224+
and end-users.
225+
-->
226+
使用发布渠道能让内部实现快速流转的迭代开发,且能让外部实现者和最终用户标示功能稳定性。
227+
228+
<!--
229+
For this release we've added the following experimental features:
230+
231+
- [Routes can attach to Gateways by specifying port numbers](https://gateway-api.sigs.k8s.io/geps/gep-957/)
232+
- [URL rewrites and path redirects](https://gateway-api.sigs.k8s.io/geps/gep-726/)
233+
-->
234+
本次发布新增了以下实验性的功能特性:
235+
236+
- [路由通过指定端口号可以挂接到 Gateway](https://gateway-api.sigs.k8s.io/geps/gep-957/)
237+
- [URL 重写和路径重定向](https://gateway-api.sigs.k8s.io/geps/gep-726/)
238+
239+
[ch]:https://gateway-api.sigs.k8s.io/concepts/versioning/#release-channels-eg-experimental-standard
240+
241+
<!--
242+
### Other improvements
243+
244+
For an exhaustive list of changes included in the `v0.5.0` release, please see
245+
the [v0.5.0 release notes](https://github.com/kubernetes-sigs/gateway-api/releases/tag/v0.5.0).
246+
-->
247+
### 其他改进
248+
249+
有关 `v0.5.0` 版本中包括的完整变更清单,请参阅
250+
[v0.5.0 发布说明](https://github.com/kubernetes-sigs/gateway-api/releases/tag/v0.5.0)
251+
252+
<!--
253+
## Gateway API for service mesh: the GAMMA Initiative
254+
Some service mesh projects have [already implemented support for the Gateway
255+
API](https://gateway-api.sigs.k8s.io/implementations/). Significant overlap
256+
between the Service Mesh Interface (SMI) APIs and the Gateway API has [inspired
257+
discussion in the SMI
258+
community](https://github.com/servicemeshinterface/smi-spec/issues/249) about
259+
possible integration.
260+
-->
261+
## 适用于服务网格的 Gateway API:GAMMA 倡议
262+
263+
某些服务网格项目[已实现对 Gateway API 的支持](https://gateway-api.sigs.k8s.io/implementations/)
264+
服务网格接口 (Service Mesh Interface,SMI) API 和 Gateway API 之间的显著重叠
265+
[已激发了 SMI 社区讨论](https://github.com/servicemeshinterface/smi-spec/issues/249)可能的集成方式。
266+
267+
<!--
268+
We are pleased to announce that the service mesh community, including
269+
representatives from Cilium Service Mesh, Consul, Istio, Kuma, Linkerd, NGINX
270+
Service Mesh and Open Service Mesh, is coming together to form the [GAMMA
271+
Initiative](https://gateway-api.sigs.k8s.io/contributing/gamma/), a dedicated
272+
workstream within the Gateway API subproject focused on Gateway API for Mesh
273+
Management and Administration.
274+
-->
275+
我们很高兴地宣布,来自 Cilium Service Mesh、Consul、Istio、Kuma、Linkerd、NGINX Service Mesh
276+
和 Open Service Mesh 等服务网格社区的代表汇聚一堂组成
277+
[GAMMA 倡议小组](https://gateway-api.sigs.k8s.io/contributing/gamma/)
278+
这是 Gateway API 子项目内一个专门的工作流,专注于网格管理所用的 Gateway API。
279+
280+
<!--
281+
This group will deliver [enhancement
282+
proposals](https://gateway-api.sigs.k8s.io/v1beta1/contributing/gep/) consisting
283+
of resources, additions, and modifications to the Gateway API specification for
284+
mesh and mesh-adjacent use-cases.
285+
286+
This work has begun with [an exploration of using Gateway API for
287+
service-to-service
288+
traffic](https://docs.google.com/document/d/1T_DtMQoq2tccLAtJTpo3c0ohjm25vRS35MsestSL9QU/edit#heading=h.jt37re3yi6k5)
289+
and will continue with enhancement in areas such as authentication and
290+
authorization policy.
291+
-->
292+
这个小组将交付[增强提案](https://gateway-api.sigs.k8s.io/v1beta1/contributing/gep/)
293+
包括对网格和网格相关用例适用的 Gateway API 规约的资源、添加和修改。
294+
295+
这项工作已从
296+
[探索针对服务间流量使用 Gateway API](https://docs.google.com/document/d/1T_DtMQoq2tccLAtJTpo3c0ohjm25vRS35MsestSL9QU/edit#heading=h.jt37re3yi6k5)
297+
开始,并将继续增强身份验证和鉴权策略等领域。
298+
299+
<!--
300+
## Next steps
301+
302+
As we continue to mature the API for production use cases, here are some of the highlights of what we'll be working on for the next Gateway API releases:
303+
304+
- [GRPCRoute][gep1016] for [gRPC][grpc] traffic routing
305+
- [Route delegation][pr1085]
306+
- Layer 4 API maturity: Graduating [TCPRoute][tcpr], [UDPRoute][udpr] and
307+
[TLSRoute][tlsr] to beta
308+
- [GAMMA Initiative](https://gateway-api.sigs.k8s.io/contributing/gamma/) - Gateway API for Service Mesh
309+
-->
310+
## 下一步
311+
312+
随着我们不断完善用于生产用例的 API,以下是我们将为下一个 Gateway API 版本所做的一些重点工作:
313+
314+
- 针对 [gRPC][grpc] 流量路由的 [GRPCRoute][gep1016]
315+
- [路由代理][pr1085]
316+
- 4 层 API 成熟度:[TCPRoute][tcpr][UDPRoute][udpr][TLSRoute][tlsr] 正进入 Beta 阶段
317+
- [GAMMA 倡议](https://gateway-api.sigs.k8s.io/contributing/gamma/) - 针对服务网格的 Gateway API
318+
319+
<!--
320+
If there's something on this list you want to get involved in, or there's
321+
something not on this list that you want to advocate for to get on the roadmap
322+
please join us in the #sig-network-gateway-api channel on Kubernetes Slack or our weekly [community calls](https://gateway-api.sigs.k8s.io/contributing/community/#meetings).
323+
-->
324+
如果你想参与此列表中的某些工作,或者你想倡导加入路线图的内容不在此列表中,
325+
请通过 Kubernetes Slack 的 #sig-network-gateway-api 频道或我们每周的
326+
[社区电话会议](https://gateway-api.sigs.k8s.io/contributing/community/#meetings)加入我们。
327+
328+
[gep1016]:https://github.com/kubernetes-sigs/gateway-api/blob/master/site-src/geps/gep-1016.md
329+
[grpc]:https://grpc.io/
330+
[pr1085]:https://github.com/kubernetes-sigs/gateway-api/pull/1085
331+
[tcpr]:https://github.com/kubernetes-sigs/gateway-api/blob/main/apis/v1alpha2/tcproute_types.go
332+
[udpr]:https://github.com/kubernetes-sigs/gateway-api/blob/main/apis/v1alpha2/udproute_types.go
333+
[tlsr]:https://github.com/kubernetes-sigs/gateway-api/blob/main/apis/v1alpha2/tlsroute_types.go
334+
[community]:https://gateway-api.sigs.k8s.io/contributing/community/

0 commit comments

Comments
 (0)