Rotating a cluster certificate on OpenShift can take down every node if the new CA is not already trusted. The failure mode is documented in field notes for this exact sequence: rotate before the Let's Encrypt CA chain is in the cluster's trusted bundle, and you get Kubelet stopped posting node status on all nodes, kube-apiserver CrashLoopBackOff during the rollout, all nodes going NotReady, and cascading operator failures.
The mechanism is straightforward. When the kube-apiserver operator rolls out a new certificate, every kubelet and operator must already trust the CA that signed it. The Machine Config Operator (MCO) distributes the trust bundle to every RHCOS node. If that distribution has not completed before the rotation starts, the new certificate is rejected everywhere at once.
This walkthrough shows the one task that prevents that outcome: adding the Let's Encrypt CA to the cluster's trusted bundle before any certificate rotation, and verifying the rollout finished.
Prerequisites
- An OpenShift 5.0 cluster with the cert-manager Operator installed and healthy. Install it with:
oc apply -k cert-manager/operator/overlays/stable-v1 Then confirm the CSV phase is Succeeded and pods are running:
oc get subscription -n cert-manager-operator oc get csv -n cert-manager-operator oc get pods -n cert-manager-operator oc get pods -n cert-manager -
oc,openssl, andcurlavailable locally, and you are logged into the cluster. The script checks all four and exits with a clear error if any is missing.
The critical step: add the CA to cluster trust
Run this before any certificate rotation. The script is in the repo at cert-manager/instances/add-trusted-ca.sh:
chmod +x cert-manager/instances/add-trusted-ca.sh ./cert-manager/instances/add-trusted-ca.sh What the script does, based on its source:
- Discovers the Let's Encrypt intermediate CA from the API certificate's Authority Information Access (AIA) URL. If the API cert is still the cluster's self-signed cert, it falls back to the standard Let's Encrypt ECDSA chain.
- Downloads the intermediate and cross-signed root from the AIA URLs.
- Builds and verifies the CA bundle. It runs
openssl verifyagainst the API server leaf certificate using the downloaded intermediate and root. If verification fails, it warns that the bundle may still work if the ISRG root is in RHCOS system trust — but you should investigate before proceeding. - Creates the
letsencrypt-caConfigMap inopenshift-config. - Patches
proxy/clusterwithtrustedCAreferencing that ConfigMap. The MCO reads this and distributes the bundle to every RHCOS node. - Waits for MCO rollout on
mcp/masterandmcp/worker, with a default timeout of 20 minutes each. Typical time is 5–15 minutes.
The script has a --skip-wait flag that skips the MCO rollout wait. Do not use it before rotating the API certificate unless you have independently confirmed the MCO rollout is complete. If you do skip the wait, monitor with oc get mcp.
What to look for
The script prints [OK] lines as each step completes. The key milestones are:
-
CA bundle verified — API cert chains correctly to bundle(or a warning to investigate if verification failed) ConfigMap letsencrypt-ca created/updated in openshift-configproxy/cluster patched — MCO will now distribute Let's Encrypt CA to all nodesMCO rollout complete — Let's Encrypt CA is now trusted on all RHCOS nodes
Only after the script reports that the MCO rollout is complete is the Let's Encrypt CA trusted on all RHCOS nodes, and only then is rotation safe. This ordering is repeated in the top-level cert-manager README as a critical warning: the MCO must complete before the rollout starts.
Then provide credentials and issue certificates
After the trust bundle is distributed, provide cloud credentials and create the DNS01 issuer. For AWS, the instances/aws/README.md documents:
chmod +x setup-secrets.sh ./setup-secrets.sh \ <aws-access-key-id> \ <aws-secret-access-key> \ <your-email> Region and hosted zone are auto-detected. Apply the issuer and certificate resources:
oc apply -k cert-manager/instances/aws/ For Azure, the instances/azure/README.md documents creating a service principal with DNS Zone Contributor on the Azure DNS zone, then running setup-secrets.sh with tenant ID, client ID, client secret, subscription ID, resource group, zone name, and email, and applying with oc apply -k cert-manager/instances/azure/.
For IBM Cloud KVM and GCP, the provider instances exist in the repo, but the exact setup-secrets.sh arguments and verification commands are not in the supplied excerpts. Check the respective instances/<provider>/README.md files in the repository before using them.
Verify
oc get clusterissuer letsencrypt-prod oc get certificate -n openshift-ingress oc get certificate -n openshift-config Both certificates must show Ready: True. The AWS README points to post-steps/create_custom_cert.sh for the full ingress/API server patch sequence, which is outside the cert-manager/ folder and outside this walkthrough.
Evidence gaps
- Channel and version observations (such as a 10 November 2026 package manifest listing
stable-v1andstable-v1.20) are dated snapshots for one cluster, not evergreen guidance. Check the manifest on the build you are installing. - The
setup-secrets.shscripts take cloud credentials as command-line arguments. This is a field-notes workflow, not a secrets-management design. - I have not reproduced IBM Cloud KVM or GCP provider steps here because those provider READMEs were not in the supplied excerpts. Verify them in the repository before use.
Try it yourself
In this order:
-
oc apply -k cert-manager/operator/overlays/stable-v1and wait for all pods and the CSV. -
./cert-manager/instances/add-trusted-ca.shand wait for the MCO rollout. - Run the cloud-specific
setup-secrets.shfor your provider. -
oc apply -k cert-manager/instances/<provider>/and verify the ClusterIssuer and Certificate status.
The repository is at github.com/tosin2013/openshift-5-deployment-notes. Trust the CA first. Then rotate the cert.


