@@ -3,7 +3,6 @@ title: Operator 模式
3
3
content_type : concept
4
4
weight : 30
5
5
---
6
-
7
6
<!--
8
7
title: Operator pattern
9
8
content_type: concept
@@ -38,7 +37,7 @@ code to automate a task beyond what Kubernetes itself provides.
38
37
-->
39
38
## 初衷 {#motivation}
40
39
41
- ** Operator 模式** 旨在记述(正在管理一个或一组服务的)运维人员的关键目标。
40
+ ** Operator 模式** 旨在记述(正在管理一个或一组服务的)运维人员的关键目标。
42
41
这些运维人员负责一些特定的应用和 Service,他们需要清楚地知道系统应该如何运行、如何部署以及出现问题时如何处理。
43
42
44
43
在 Kubernetes 上运行工作负载的人们都喜欢通过自动化来处理重复的任务。
@@ -61,7 +60,7 @@ controllers for a [Custom Resource](/docs/concepts/extend-kubernetes/api-extensi
61
60
## Kubernetes 上的 Operator {#operators-in-kubernetes}
62
61
63
62
Kubernetes 为自动化而生。无需任何修改,你即可以从 Kubernetes 核心中获得许多内置的自动化功能。
64
- 你可以使用 Kubernetes 自动化部署和运行工作负载,** 甚至** 可以自动化 Kubernetes 自身。
63
+ 你可以使用 Kubernetes 自动化部署和运行工作负载,** 甚至** 可以自动化 Kubernetes 自身。
65
64
66
65
Kubernetes 的 {{< glossary_tooltip text="Operator 模式" term_id="operator-pattern" >}}概念允许你在不修改
67
66
Kubernetes 自身代码的情况下,
@@ -120,7 +119,6 @@ What might an operator look like in more detail? Here's an example:
120
119
code checks to see if the database is running an old version and, if so,
121
120
creates Job objects that upgrade it for you.
122
121
-->
123
-
124
122
想要更详细的了解 Operator?下面是一个示例:
125
123
126
124
1 . 有一个名为 SampleDB 的自定义资源,你可以将其配置到集群中。
@@ -196,7 +194,6 @@ want, you can code your own.
196
194
You also implement an operator (that is, a Controller) using any language / runtime
197
195
that can act as a [client for the Kubernetes API](/docs/reference/using-api/client-libraries/).
198
196
-->
199
-
200
197
如果生态系统中没有可以实现你目标的 Operator,你可以自己编写代码。
201
198
202
199
你还可以使用任何支持
@@ -217,22 +214,22 @@ operator.
217
214
* [Kopf](https://github.com/nolar/kopf) (Kubernetes Operator Pythonic Framework)
218
215
* [kube-rs](https://kube.rs/) (Rust)
219
216
* [kubebuilder](https://book.kubebuilder.io/)
220
- * [KubeOps](https://buehler .github.io/dotnet-operator-sdk/) (.NET operator SDK)
217
+ * [KubeOps](https://dotnet .github.io/dotnet-operator-sdk/) (.NET operator SDK)
221
218
* [Mast](https://docs.ansi.services/mast/user_guide/operator/)
222
219
* [Metacontroller](https://metacontroller.github.io/metacontroller/intro.html) along with WebHooks that
223
220
you implement yourself
224
221
* [Operator Framework](https://operatorframework.io)
225
222
* [shell-operator](https://github.com/flant/shell-operator)
226
223
-->
227
-
228
224
* [ Charmed Operator Framework] ( https://juju.is/ )
229
225
* [ Java Operator SDK] ( https://github.com/operator-framework/java-operator-sdk )
230
226
* [ Kopf] ( https://github.com/nolar/kopf ) (Kubernetes Operator Pythonic Framework)
231
227
* [ kube-rs] ( https://kube.rs/ ) (Rust)
232
228
* [ kubebuilder] ( https://book.kubebuilder.io/ )
233
- * [ KubeOps] ( https://buehler .github.io/dotnet-operator-sdk/ ) (.NET operator SDK)
229
+ * [ KubeOps] ( https://dotnet .github.io/dotnet-operator-sdk/ ) (.NET operator SDK)
234
230
* [ Mast] ( https://docs.ansi.services/mast/user_guide/operator/ )
235
- * [ Metacontroller] ( https://metacontroller.github.io/metacontroller/intro.html ) ,可与 Webhook 结合使用,以实现自己的功能。
231
+ * [ Metacontroller] ( https://metacontroller.github.io/metacontroller/intro.html ) ,可与
232
+ Webhook 结合使用,以实现自己的功能。
236
233
* [ Operator Framework] ( https://operatorframework.io )
237
234
* [ shell-operator] ( https://github.com/flant/shell-operator )
238
235
@@ -249,7 +246,6 @@ operator.
249
246
* Read an [article](https://cloud.google.com/blog/products/containers-kubernetes/best-practices-for-building-kubernetes-operators-and-stateful-apps)
250
247
from Google Cloud about best practices for building operators
251
248
-->
252
-
253
249
* 阅读 {{< glossary_tooltip text="CNCF" term_id="cncf" >}} [ Operator 白皮书] ( https://github.com/cncf/tag-app-delivery/blob/163962c4b1cd70d085107fc579e3e04c2e14d59c/operator-wg/whitepaper/Operator-WhitePaper_v1-0.md ) 。
254
250
* 详细了解[ 定制资源] ( /zh-cn/docs/concepts/extend-kubernetes/api-extension/custom-resources/ )
255
251
* 在 [ OperatorHub.io] ( https://operatorhub.io/ ) 上找到现成的、适合你的 Operator
0 commit comments