File tree Expand file tree Collapse file tree 3 files changed +39
-7
lines changed Expand file tree Collapse file tree 3 files changed +39
-7
lines changed Original file line number Diff line number Diff line change 1+ // Module included in the following assemblies:
2+ //
3+ // * security/certificates/api-server.adoc
4+
5+ :_content-type: PROCEDURE
6+ [id="configure-an-additional-clientCA-for-the-OpenShift-API-server_{context} "]
7+
8+ = Configure an additional clientCA for the OpenShift API server
9+
10+ Optionally, you may choose to invalidate the installer-generated kubeconfig. You would do this when:
11+
12+ * You don't trust who installed the cluster
13+ * The kubeconfig is leaked
14+ * Other security-related needs exist, such as periodic rotation of the kubeconfig
15+
16+ To replace the installer-generated kubeconfig, remove the installer-generated clientCA from the API server
17+
18+ . Import an additional CA certificate in a configmap of the openshift-config namespace. The CA file must be in PEM format.
19+ +
20+ [source,terminal]
21+ ----
22+ oc create configmap client-ca-custom -n openshift-config --from-file=ca-bundle.crt=ca.crt
23+ ----
24+ +
25+ . Patch the APIServer instance.
26+ +
27+ [source, terminal]
28+ ----
29+ oc patch apiserver cluster --type=merge -p '{"spec": {"clientCA": {"name": "client-ca-custom"}}}'
30+ ----
31+
32+ . Test the new clientCA certificate with a certificate signed from the new clientCA.
33+ . If the test is successful, you can remove the installer-generated clientCA.
34+
35+
Original file line number Diff line number Diff line change @@ -22,13 +22,6 @@ certificate for the API server FQDN must be the first certificate in the file.
2222It can then be followed with any intermediate certificates, and the file should
2323end with the root CA certificate.
2424
25- [WARNING]
26- ====
27- Do not provide a named certificate for the internal load balancer (host
28- name `api-int.<cluster_name>.<base_domain>`). Doing so will leave your
29- cluster in a degraded state.
30- ====
31-
3225.Procedure
3326
3427. Login to the new API as the `kubeadmin` user.
Original file line number Diff line number Diff line change @@ -12,3 +12,7 @@ API server's certificate by default. This certificate can be replaced
1212by one that is issued by a CA that clients trust.
1313
1414include::modules/customize-certificates-api-add-named.adoc[leveloffset=+1]
15+
16+ include::modules/configure-an-additional-clientCA.adoc[leveloffset=+1]
17+
18+
You can’t perform that action at this time.
0 commit comments