Vault issued the certificate. cert-manager updated the Secret. The kubelet updated the files. TLS can still break hours later, because none of those steps changes what your process holds in memory.
The failure chain
Vault PKI → mounted volume → stale in-memory TLS context → failed connections
1. Vault signs a new certificate
With cert-manager and a Vault issuer:
apiVersion : cert-manager.io/v1 kind : Certificate metadata : name : web-tls spec : secretName : web-tls duration : 24h renewBefore : 8h dnsNames : - web.prod.svc issuerRef : name : vault-issuer kind : ClusterIssuer
Enter fullscreen mode
Exit fullscreen mode
Sixteen hours in, cert-manager sends a signing request to Vault and writes the new pair to the Secret.
2. The kubelet updates the volume
The mounted files are symlinks through a ..data directory. The kubelet writes a new directory and repoints ..data with an atomic rename, typically within a minute or two.
The exception is subPath .…