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
remove usage of the "certificates" API for cert renewal (#26841)
* remove usage of the "certificates" API for cert renewal
"--use-api" option is removed from kubeadm alpha certs renew command since k8s 1.19
* Update kubeadm-certs.md
* Update content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-certs.md
Co-authored-by: Lubomir I. Ivanov <[email protected]>
Co-authored-by: Lubomir I. Ivanov <[email protected]>
Copy file name to clipboardExpand all lines: content/en/docs/tasks/administer-cluster/kubeadm/kubeadm-certs.md
+1-30Lines changed: 1 addition & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,36 +170,7 @@ controllerManager:
170
170
171
171
### Create certificate signing requests (CSR)
172
172
173
-
You can create the certificate signing requests for the Kubernetes certificates API with `kubeadm certs renew --use-api`.
174
-
175
-
If you set up an external signer such as [cert-manager](https://github.com/jetstack/cert-manager), certificate signing requests (CSRs) are automatically approved.
176
-
Otherwise, you must manually approve certificates with the [`kubectl certificate`](/docs/setup/best-practices/certificates/) command.
177
-
The following kubeadm command outputs the name of the certificate to approve, then blocks and waits for approval to occur:
178
-
179
-
```shell
180
-
sudo kubeadm certs renew apiserver --use-api &
181
-
```
182
-
The output is similar to this:
183
-
```
184
-
[1] 2890
185
-
[certs] certificate request "kubeadm-cert-kube-apiserver-ld526" created
186
-
```
187
-
188
-
### Approve certificate signing requests (CSR)
189
-
190
-
If you set up an external signer, certificate signing requests (CSRs) are automatically approved.
191
-
192
-
Otherwise, you must manually approve certificates with the [`kubectl certificate`](/docs/setup/best-practices/certificates/) command. e.g.
You can view a list of pending certificates with `kubectl get csr`.
173
+
See [Create CertificateSigningRequest](https://kubernetes.io/docs/reference/access-authn-authz/certificate-signing-requests/#create-certificatesigningrequest) for creating CSRs with the Kubernetes API.
0 commit comments