Cloud & KubernetesJA · Japanese

cert-manager Reports Ready but Serves Stale Certificates: Troubleshooting from Secret to Ingress

When cert-manager reports a Certificate resource as Ready but browsers still receive an outdated certificate, the issue typically lies in how the Ingress or downstream application consumes the Secret. Decoupling the issuance pipeline from certificate consumption streamlines root-cause analysis.

Curated by Vibe DevOps · approx. 511 words

Key Takeaways

  • A Ready Certificate status only confirms successful issuance and secret storage; it does not guarantee active consumption.
  • The Ingress controller or downstream application must correctly reference the target Secret name and implement a reload mechanism to pick up rotated certificates.
  • Inspect resource statuses and events rather than dumping raw Secrets to prevent leaking private keys into shell history and terminal logs.
  • Separating issuance concerns from consumption prevents unnecessary cluster rollouts and node restarts.

From Original Source

Four Key Identifiers to Differentiate in a Certificate Resource

In a Certificate manifest, engineers must distinguish between four distinct values: the Certificate resource name, the target Secret name, the DNS names, and the issuer reference. Confusing the Certificate metadata name with the secretName is a common anti-pattern that leads services to mount the wrong Secret.

Issuers operate at two scopes: namespaced Issuers and cluster-wide ClusterIssuers. When switching between them, ensure the issuerRef properly reflects the target scope to prevent issuance failures.

From Original Source

Troubleshooting Workflow and Security Practices for TLS Failures

If a certificate is not Ready, inspect Certificate events and CertificateRequests instead of manually recreating Secrets. If the Secret exists but the service still serves an outdated cert, verify the secretName in your Ingress spec and confirm dynamic reload behavior.

When using the CLI, stick to resource statuses and event summaries. Never dump raw Secret manifests to stdout—base64 is encoding, not encryption, and piping it risks persisting private keys in terminal history and audit logs.

Vibe DevOps Editorial Commentary

Operational Boundaries and Production Best Practices

The DevOps Perspective: Clear separation of concerns between cert-manager issuance and Ingress TLS termination significantly cuts MTTR. Implement blackbox monitoring against the public endpoint to track actual TLS expiry as seen by clients, rather than relying solely on in-cluster Kubernetes status.

Verify whether your Ingress controller supports dynamic TLS reloading or requires a process reload to apply rotated secrets. During on-call handoffs, document only the namespace, resource names, and endpoint verification commands—never paste private key material into runbooks or tickets.

Commands & Configuration Snippets

Verbatim extract for quick lookup. Verify against your infrastructure before running.

kubectl -n web get certificate shop-certificate

Check the ready status of the Certificate resource in the web namespace

kubectl -n web describe certificate shop-certificate

View details of issuance events and related error messages

kubectl -n web get secret shop-tls

Verify that the Secret containing the TLS certificate has been successfully created

kubectl -n web get ingress

Check the Ingress list to cross-reference the TLS configuration

⚠️ Operational Caveats & Limitations

  • This guide covers standard in-cluster validation paths; topologies utilizing external cloud load balancers or edge CDNs require distinct validation and certificate deployment workflows.

Read original post at Zenn — Topic Kubernetes ↗


Explore Next on Vibe DevOps

More Global DevOps News