Interview Prep/Networking/TLS, Certificates & Network Security

How does cert-manager work in Kubernetes?

IntermediateProductionTLS, Certificates & Network Security
Answer

You define an Issuer or ClusterIssuer (ACME, Vault, CA, self-signed) and Certificate resources, or annotate an Ingress. cert-manager creates a CertificateRequest, completes ACME challenges (HTTP-01 through the ingress or DNS-01 through the cloud DNS API), stores the result in a Secret and renews at two thirds of lifetime.

apiVersion: cert-manager.io/v1
kind: Certificate
metadata: {name: web-tls}
spec:
  secretName: web-tls
  dnsNames: [app.example.com]
  issuerRef: {name: letsencrypt-prod, kind: ClusterIssuer}

Use DNS-01 for wildcard certificates and when port 80 is not reachable.

All Networking questions Roadmap: Networking for DevOps

More on TLS, Certificates & Network Security