1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

Merge pull request #105726 from openshift-cherrypick-robot/cherry-pick-105650-to-enterprise-4.21

[enterprise-4.21] OCPBUGS#70310:Incorrect_Json_format
This commit is contained in:
Shubha Narayanan
2026-01-30 15:44:18 +05:30
committed by GitHub

View File

@@ -65,12 +65,14 @@ $ oc create secret tls <secret> \//<1>
----
$ oc patch apiserver cluster \
--type=merge -p \
'{"spec":{"servingCerts": {"namedCertificates": \
[{"names": ["<FQDN>"], \//<1>
"servingCertificate": {"name": "<secret>"}}]}}}' <2>
'{"spec":{"servingCerts": {"namedCertificates":
[{"names": ["<FQDN>"],
"servingCertificate": {"name": "<secret>"}}]}}}'
----
<1> Replace `<FQDN>` with the FQDN that the API server should provide the certificate for. Do not include the port number.
<2> Replace `<secret>` with the name used for the secret in the previous step.
where:
<FQDN>:: Replace `<FQDN>` with the FQDN that the API server should provide the certificate for. Do not include the port number.
<secret>:: Replace `<secret>` with the name used for the secret in the previous step.
. Examine the `apiserver/cluster` object and confirm the secret is now
referenced.