CDM Node serves an old certificate
CDM Node reads the certificate from the cdm-tls-cert Secret when it starts and keeps it in memory. After cert-manager issues a new certificate, CDM Node keeps serving the old one until its pods restart. Core Clusters that use a new domain fail the TLS handshake in the meantime.
Symptoms
- The
Certificateis ready, but Core Clusters still fail the TLS handshake. For the symptoms of the handshake failure, see TLS handshake fails. - The names in the Secret differ from the names that CDM Node serves.
To list the names in the Secret, run:
To list the names that CDM Node serves, run:
When the two outputs differ, CDM Node serves an old certificate.
Possible causes
-
CDM Node runs a version earlier than 1.7.0. These versions do not restart after the certificate changes.
-
The Reloader component does not watch the Secret. To check the annotation that triggers the restart, run:
bashThe output must contain
secret.reloader.stakater.com/reloadwith the valuecdm-tls-cert. -
The Reloader pod does not run. To check it, run:
bash
Solution
To resolve this issue, restart the CDM Node pods:
Note
The restart takes one pod at a time. The pod that restarts is unavailable for a short time.
Restart the pods:
bashWait until the restart finishes:
bashThe command prints
partitioned roll out complete: 3 new pods have been updated...when all pods run again.List the names that CDM Node serves again. The output now matches the names in the Secret.