From d254b98d6cb51198ac45962b2bff21e934ad72c2 Mon Sep 17 00:00:00 2001 From: Alan Tsang Date: Wed, 29 Jul 2020 21:25:53 +0800 Subject: [PATCH 1/2] feat: translate cronjob-tutorial/cert-manager.md --- .../book/src/cronjob-tutorial/cert-manager.md | 23 ++++++------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/docs/book/src/cronjob-tutorial/cert-manager.md b/docs/book/src/cronjob-tutorial/cert-manager.md index a8aed162d38..180349f55dc 100644 --- a/docs/book/src/cronjob-tutorial/cert-manager.md +++ b/docs/book/src/cronjob-tutorial/cert-manager.md @@ -1,24 +1,15 @@ -# Deploying the cert manager +# 部署 cert manager -We suggest using [cert manager](https://github.com/jetstack/cert-manager) for -provisioning the certificates for the webhook server. Other solutions should -also work as long as they put the certificates in the desired location. +我们建议使用 [cert manager](https://github.com/jetstack/cert-manager) 为 webhook 服务器提供证书。只要其他解决方案将证书放在期望的位置,也将会起作用。 -You can follow -[the cert manager documentation](https://docs.cert-manager.io/en/latest/getting-started/install/kubernetes.html) -to install it. +您可以按照 [cert manager 文档](https://docs.cert-manager.io/en/latest/getting-started/install/kubernetes.html) 进行安装。 -Cert manager also has a component called CA injector, which is responsible for -injecting the CA bundle into the Mutating|ValidatingWebhookConfiguration. +Cert manager 还有一个叫做 CA 注入器的组件,该组件负责将 CA 捆绑注入到 Mutating|ValidatingWebhookConfiguration 中。 -To accomplish that, you need to use an annotation with key -`cert-manager.io/inject-ca-from` -in the Mutating|ValidatingWebhookConfiguration objects. -The value of the annotation should point to an existing certificate CR instance -in the format of `/`. +为此,您需要在 Mutating|ValidatingWebhookConfiguration 对象中使用带有 key 为 `cert-manager.io/inject-ca-from` 的注释。 +注释的值应指向现有的证书 CR 实例,格式为 `/`。 -This is the [kustomize](https://github.com/kubernetes-sigs/kustomize) patch we -used for annotating the Mutating|ValidatingWebhookConfiguration objects. +这是我们用于注释 Mutating|ValidatingWebhookConfiguration 对象的 [kustomize](https://github.com/kubernetes-sigs/kustomize) patch。 ```yaml {{#include ./testdata/project/config/default/webhookcainjection_patch.yaml}} ``` From 04cd1d3d5443152c489583a60891c54768e67979 Mon Sep 17 00:00:00 2001 From: Alan Tsang Date: Thu, 30 Jul 2020 14:51:50 +0800 Subject: [PATCH 2/2] update: cronjob-tutorial/cert-manager.md --- docs/book/src/cronjob-tutorial/cert-manager.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/book/src/cronjob-tutorial/cert-manager.md b/docs/book/src/cronjob-tutorial/cert-manager.md index 180349f55dc..d2e76eb64ef 100644 --- a/docs/book/src/cronjob-tutorial/cert-manager.md +++ b/docs/book/src/cronjob-tutorial/cert-manager.md @@ -2,11 +2,11 @@ 我们建议使用 [cert manager](https://github.com/jetstack/cert-manager) 为 webhook 服务器提供证书。只要其他解决方案将证书放在期望的位置,也将会起作用。 -您可以按照 [cert manager 文档](https://docs.cert-manager.io/en/latest/getting-started/install/kubernetes.html) 进行安装。 +你可以按照 [cert manager 文档](https://docs.cert-manager.io/en/latest/getting-started/install/kubernetes.html) 进行安装。 Cert manager 还有一个叫做 CA 注入器的组件,该组件负责将 CA 捆绑注入到 Mutating|ValidatingWebhookConfiguration 中。 -为此,您需要在 Mutating|ValidatingWebhookConfiguration 对象中使用带有 key 为 `cert-manager.io/inject-ca-from` 的注释。 +为此,你需要在 Mutating|ValidatingWebhookConfiguration 对象中使用带有 key 为 `cert-manager.io/inject-ca-from` 的注释。 注释的值应指向现有的证书 CR 实例,格式为 `/`。 这是我们用于注释 Mutating|ValidatingWebhookConfiguration 对象的 [kustomize](https://github.com/kubernetes-sigs/kustomize) patch。