Menu

1 / 3

Your Certificate Rotated. Production Can Still Go Down.

DEV Community: kubernetes·ManojReddy·about 7 hours ago
#V8IWFGBK
#devtokubernetes#devto#dev#certificate#cert
Long article (893 words) — no AI summary yet.
Reading 0:00
15s threshold

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 .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.