Interview Prep/Networking/TLS, HTTP & Application Layer

How do you run Kubernetes certificates automatically with cert-manager?

IntermediateScenarioTLS, HTTP & Application Layer
Answer

Situation read → cert-manager issues and renews certificates as Kubernetes resources.

What I'd do →

  1. Install it: helm install cert-manager jetstack/cert-manager --set crds.enabled=true -n cert-manager --create-namespace
  2. Create a ClusterIssuer for Let's Encrypt with HTTP-01 or DNS-01 solvers
  3. Annotate the Ingress with cert-manager.io/cluster-issuer: letsencrypt and set tls.secretName
  4. Watch kubectl get certificate,certificaterequest,order,challenge -A
  5. Alert on certmanager_certificate_expiration_timestamp_seconds

Why → The controller renews at two thirds of the lifetime by default, so expiry becomes a monitoring problem rather than a calendar one.

Interview tip → Say rate limits of Let's Encrypt are why you use staging first.

All Networking questions Roadmap: Networking for DevOps

More on TLS, HTTP & Application Layer