Skip to content

Commit ac76abf

Browse files
authored
Merge pull request #27151 from ydFu/update-kubeadm-certs
[zh] Sync tasks pages for kubeadm\kubeadm-certs.md
2 parents dab0125 + eb75932 commit ac76abf

File tree

1 file changed

+3
-57
lines changed

1 file changed

+3
-57
lines changed

content/zh/docs/tasks/administer-cluster/kubeadm/kubeadm-certs.md

Lines changed: 3 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -324,69 +324,15 @@ controllerManager:
324324

325325
<!--
326326
### Create certificate signing requests (CSR)
327-
328-
You can create the certificate signing requests for the Kubernetes certificates API with `kubeadm alpha certs renew --use-api`.
329327
-->
330328
### 创建证书签名请求 (CSR)
331329

332-
你可以用 `kubeadm alpha certs renew --use-api` 为 Kubernetes 证书 API 创建一个证书签名请求。
333-
334-
<!--
335-
If you set up an external signer such as [cert-manager](https://github.com/jetstack/cert-manager), certificate signing requests (CSRs) are automatically approved.
336-
Otherwise, you must manually approve certificates with the [`kubectl certificate`](/docs/setup/best-practices/certificates/) command.
337-
The following kubeadm command outputs the name of the certificate to approve, then blocks and waits for approval to occur:
338-
-->
339-
如果你设置例如 [cert-manager](https://github.com/jetstack/cert-manager)
340-
等外部签名者,证书签名请求(CSRs)会被自动批准。
341-
否则,你必须使用 [`kubectl certificate`](/zh/docs/setup/best-practices/certificates/)
342-
命令手动批准证书。
343-
以下 kubeadm 命令输出要批准的证书名称,然后阻塞等待批准发生:
344-
345-
```shell
346-
sudo kubeadm alpha certs renew apiserver --use-api &
347-
```
348-
349330
<!--
350-
The output is similar to this:
351-
-->
352-
输出类似于以下内容:
353-
```
354-
[1] 2890
355-
[certs] certificate request "kubeadm-cert-kube-apiserver-ld526" created
356-
```
357-
358-
<!--
359-
### Approve certificate signing requests (CSR)
360-
361-
If you set up an external signer, certificate signing requests (CSRs) are automatically approved.
362-
363-
Otherwise, you must manually approve certificates with the [`kubectl certificate`](/docs/setup/best-practices/certificates/) command. e.g.
331+
See [Create CertificateSigningRequest](https://kubernetes.io/docs/reference/access-authn-authz/certificate-signing-requests/#create-certificatesigningrequest) for creating CSRs with the Kubernetes API.
364332
-->
333+
有关使用 Kubernetes API 创建 CSR 的信息,
334+
请参见[创建 CertificateSigningRequest](https://kubernetes.io/docs/reference/access-authn-authz/certificate-signing-requests/#create-certificatesigningrequest)。
365335

366-
### 批准证书签名请求 (CSR)
367-
368-
如果你设置了一个外部签名者, 证书签名请求 (CSRs) 会自动被批准。
369-
370-
否则,你必须用 [`kubectl certificate`](/zh/docs/setup/best-practices/certificates/)
371-
命令手动批准证书,例如:
372-
373-
```shell
374-
kubectl certificate approve kubeadm-cert-kube-apiserver-ld526
375-
```
376-
377-
<!--
378-
The output is similar to this:
379-
-->
380-
输出类似于以下内容:
381-
382-
```
383-
certificatesigningrequest.certificates.k8s.io/kubeadm-cert-kube-apiserver-ld526 approved
384-
```
385-
386-
<!--
387-
You can view a list of pending certificates with `kubectl get csr`.
388-
-->
389-
你可以使用 `kubectl get csr` 查看待处理证书列表。
390336

391337
<!--
392338
## Renew certificates with external CA

0 commit comments

Comments
 (0)