Skip to content

Commit 3c868b9

Browse files
committed
ocpbugs-8882: configure an addditionl clientca for the openshiftapi server
1 parent 4fe9719 commit 3c868b9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

modules/customize-certificates-api-add-named.adoc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,22 @@ If `PROGRESSING` is showing `True`, wait a few minutes and try again.
118118
====
119119
A new revision of the Kubernetes API server only rolls out if the API server named certificate is added for the first time. When the API server named certificate is renewed, a new revision of the Kubernetes API server does not roll out because the `kube-apiserver` pods dynamically reload the updated certificate.
120120
====
121+
122+
.Configure an additional clientCA for the OpenShift API server
123+
124+
. Import the CA certificate in a configmap of the openshift-config namespace. The CA file must be in PEM format.
125+
+
126+
[source,terminal]
127+
----
128+
oc create configmap client-ca-custom -n openshift-config --from-file=ca-bundle.crt=ca.crt
129+
----
130+
+
131+
Patch the APIServer instance.
132+
+
133+
[source, terminal]
134+
----
135+
oc patch apiserver cluster --type=merge -p '{"spec": {"clientCA": {"name": "client-ca-custom"}}}'
136+
----
137+
138+
After adding the new CA, any API request providing an x.509 client certificate signed by the new CA and matching a valid user is successfully authenticated.
139+

0 commit comments

Comments
 (0)