Skip to content

Commit f6780c4

Browse files
authored
Merge pull request #113392 from wgabor0427/OSDOCS-17172-node-certificates
OSDOCS-17172-node-certificates CQA
2 parents 26c6986 + 46ebe6b commit f6780c4

2 files changed

Lines changed: 25 additions & 20 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * security/certificate_types_descriptions/node-certificates.adoc
4+
5+
:_mod-docs-content-type: PROCEDURE
6+
[id="renewing-node-certificates_{context}"]
7+
= Renewing node certificates
8+
9+
[role="_abstract"]
10+
Although the kubelet CA certificate automatically renews at 292 days, you can manually trigger renewal earlier by annotating the `kube-apiserver-to-kubelet-signer` secret.
11+
12+
The old CA certificate is removed after 365 days. Nodes are not rebooted when a kubelet CA certificate is renewed or removed.
13+
14+
.Procedure
15+
16+
* Annotate the secret to trigger manual renewal by running the following command:
17+
+
18+
[source,terminal]
19+
----
20+
$ oc annotate -n openshift-kube-apiserver-operator secret kube-apiserver-to-kubelet-signer auth.openshift.io/certificate-not-after-
21+
----

security/certificate_types_descriptions/node-certificates.adoc

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,16 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9-
== Purpose
9+
[role="_abstract"]
10+
Manage node certificates in {product-title}, including understanding their purpose for kubelet-API server communication, automatic rotation schedule, and how to manually renew the kubelet CA certificate.
1011

1112
Node certificates are signed by the cluster and allow the kubelet to communicate with the Kubernetes API server. They come from the kubelet CA certificate, which is generated by the bootstrap process.
1213

13-
== Location
14-
1514
The kubelet CA certificate is located in the `kube-apiserver-to-kubelet-signer` secret in the `openshift-kube-apiserver-operator` namespace.
1615

17-
== Management
18-
19-
These certificates are managed by the system and not the user.
20-
21-
== Expiration
22-
23-
Node certificates are automatically rotated after 30 days.
24-
25-
== Renewal
26-
27-
The Kubernetes API Server Operator automatically generates a new `kube-apiserver-to-kubelet-signer` CA certificate at 292 days. The old CA certificate is removed after 365 days. Nodes are not rebooted when a kubelet CA certificate is renewed or removed.
28-
29-
Cluster administrators can manually renew the kubelet CA certificate by running the following command:
16+
These certificates are managed by the system and not the user and are automatically rotated after 30 days.
3017

31-
[source,terminal]
32-
----
33-
$ oc annotate -n openshift-kube-apiserver-operator secret kube-apiserver-to-kubelet-signer auth.openshift.io/certificate-not-after-
34-
----
18+
include::modules/renewing-node-certificates.adoc[leveloffset=+1]
3519

3620

3721
[role="_additional-resources"]

0 commit comments

Comments
 (0)