This checklist explains how to use cert-manager with Kubernetes Ingress to request, store, and renew Let’s Encrypt certificates automatically, with practical checks for installation, ACME challenges, namespaces, upgrades, and recovery.
Overview
cert-manager is a Kubernetes controller that manages certificate resources and communicates with an ACME certificate authority such as Let’s Encrypt. For a typical Ingress deployment, cert-manager observes an Ingress or Certificate resource, completes an HTTP-01 or DNS-01 challenge, stores the resulting certificate in a Kubernetes Secret, and renews it before expiration.
The main components fit together like this:
Browser
|
v
Public DNS ---> Load balancer ---> Ingress controller ---> Kubernetes Service ---> Application
|
| reads TLS Secret
v
cert-manager
|
| ACME HTTP-01 or DNS-01 challenge
v
Let’s Encrypt ACME server
The Ingress controller terminates TLS using the Secret named in the Ingress manifest. cert-manager does not normally serve application traffic itself; it creates temporary challenge resources for HTTP-01, or updates DNS records through a configured DNS provider for DNS-01.
Before starting, confirm that the hostname resolves to the public address of the intended Ingress controller, that ports 80 and 443 can reach the cluster when using HTTP-01, and that you have permission to install cluster-scoped resources. For broader certificate lifecycle planning, see this Let’s Encrypt certificate lifecycle playbook.
Checklist by scenario
1. Install cert-manager and its CRDs
Choose a cert-manager release that supports your Kubernetes version and ingress controller. Check the release documentation before applying commands during a cluster upgrade; Helm chart values and supported Kubernetes APIs can change between major releases.
helm repo add jetstack https://charts.jetstack.io
helm repo update
kubectl create namespace cert-manager
helm upgrade --install cert-manager jetstack/cert-manager \
--namespace cert-manager \
--set crds.enabled=true
Some teams install the CustomResourceDefinitions separately so that CRD ownership and upgrades are managed explicitly. Either approach can work, but use one consistent method and record it in your cluster runbook. Verify the deployment and CRDs before creating issuers:
kubectl get pods -n cert-manager
kubectl get crd | grep cert-manager
kubectl get deployment -n cert-manager
Do not mix manifests from an older cert-manager release with a newer controller without checking the migration guidance. A controller may start successfully while an outdated field or API version causes certificate resources to behave unexpectedly.
2. Create a staging ClusterIssuer first
Use Let’s Encrypt’s staging ACME endpoint while testing. Staging certificates are intended for validation and are not trusted by normal browsers, but they let you confirm DNS, routing, permissions, and challenge handling before requesting a production certificate.
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
spec:
acme:
email: [email protected]
server: https://acme-staging-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: letsencrypt-staging-account-key
solvers:
- http01:
ingress:
ingressClassName: nginx
Apply the manifest and inspect its status:
kubectl apply -f clusterissuer-staging.yaml
kubectl describe clusterissuer letsencrypt-staging
Replace nginx with the ingress class used by your controller. In a cluster with multiple controllers, an incorrect class can send the solver resource to the wrong controller or leave the challenge unreachable.
3. Request a certificate through an Ingress
The following example uses an existing Service named web in the website namespace. The annotation references a ClusterIssuer, while the TLS Secret is created in the same namespace as the Ingress.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: web
namespace: website
annotations:
cert-manager.io/cluster-issuer: letsencrypt-staging
spec:
ingressClassName: nginx
tls:
- hosts:
- www.example.com
secretName: web-tls
rules:
- host: www.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: web
port:
number: 80
Apply it and follow the resources cert-manager creates:
kubectl apply -f web-ingress.yaml
kubectl get certificate,certificaterequest,order,challenge -n website
kubectl describe certificate web-tls -n website
kubectl logs -n cert-manager deploy/cert-manager
After the staging flow succeeds, change the annotation to a production issuer and use a production ClusterIssuer:
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-production
spec:
acme:
email: [email protected]
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: letsencrypt-production-account-key
solvers:
- http01:
ingress:
ingressClassName: nginx
For production issuance, update the Ingress annotation to cert-manager.io/cluster-issuer: letsencrypt-production. Treat the production Secret as sensitive: its private key should not be copied into tickets, repositories, or unprotected backup locations.
4. Use DNS-01 when HTTP-01 is unsuitable
DNS-01 is useful for wildcard certificates or services that cannot expose a temporary HTTP endpoint publicly. It requires credentials that can change the authoritative DNS zone. Scope those credentials as narrowly as the DNS provider permits, store them in a Kubernetes Secret, and configure the DNS solver according to the current cert-manager documentation for that provider.
DNS-01 also adds propagation and delegation variables. Confirm which nameservers are authoritative, whether a delegated _acme-challenge zone is used, and whether the solver can create and remove TXT records. A DNS propagation checker can help distinguish an ACME configuration problem from a DNS visibility delay.
What to double-check
- DNS: Every requested hostname must resolve to the load balancer or ingress endpoint that serves the challenge. Check both the apex and each subdomain listed under
tls.hosts. - Ingress class: Use the field and annotation conventions supported by your ingress controller and cert-manager version. Avoid leaving the solver class ambiguous in a cluster with more than one controller.
- Namespace boundaries: A ClusterIssuer is cluster-scoped, but a Certificate, Ingress, and TLS Secret are namespace-scoped. A Secret in
websitecannot be referenced directly by an Ingress indefault. - Secret ownership: Check that the expected Secret name matches the Ingress
secretName. If another controller or deployment manages that Secret, investigate ownership before deleting or replacing it. - RBAC: cert-manager needs permission to watch certificate resources and create or update the challenge objects it manages. DNS-01 additionally needs access to the credential Secret and the provider API.
- Network policy: Egress restrictions must allow cert-manager to contact the ACME server and, for DNS-01, the DNS provider. HTTP-01 must allow the public validation request to reach the solver path.
- Renewal behavior: Do not rely only on the initial issuance. Confirm that the controller is running, the Certificate reports a future renewal time, and the Ingress controller reloads the Secret when it changes.
If you use Cloudflare or another proxy in front of the cluster, document where TLS terminates and whether the origin connection is also encrypted. The Cloudflare and Let’s Encrypt TLS guide covers the distinction between edge and origin certificates.
Common mistakes
- Testing against production immediately: A typo in a hostname, issuer, or solver can create repeated failed orders. Validate the complete route with staging first.
- Closing port 80 without an alternative: HTTP-01 needs the ACME server to retrieve a challenge over HTTP. If your policy requires no public HTTP service, use DNS-01 or review the ingress design.
- Using the wrong issuer reference:
cert-manager.io/issuerrefers to a namespaced Issuer;cert-manager.io/cluster-issuerrefers to a ClusterIssuer. They are not interchangeable. - Deleting a pending challenge without finding the cause: Recreating it usually repeats the same failure. Inspect the Certificate, Order, Challenge, ingress events, and cert-manager logs as one chain.
- Copying a TLS Secret between namespaces: This can hide the real ownership model and make renewal appear broken. Prefer a Certificate resource in every namespace that needs its own Secret, or use a deliberately managed secret distribution mechanism.
- Forgetting upgrades: Before upgrading Kubernetes, cert-manager, Helm, or the ingress controller, review CRD compatibility, API versions, chart values, admission webhooks, and rollback procedures.
When to revisit
Revisit this checklist before a cluster upgrade, an ingress-controller migration, a DNS-provider change, or the first deployment into a new namespace. Also review it when certificate-renewal alerts appear, a load balancer changes address, a proxy is introduced, or a new wildcard or multi-domain certificate is required.
For each change, record the cert-manager version, Kubernetes version, ingress class, issuer type, ACME endpoint, DNS ownership, Secret names, and the commands used to verify issuance. Run a staging issuance after meaningful configuration changes, then confirm production renewal monitoring. Keep a tested recovery path for restoring the issuer configuration, DNS credentials, and application TLS Secrets.
Finally, check the current cert-manager and ingress-controller documentation whenever either project releases a major version. Refresh CRD fields, Helm commands, supported Kubernetes APIs, annotations, solver behavior, and webhook requirements before applying old manifests to a changed cluster. For related certificate error patterns, consult the Let’s Encrypt certificate troubleshooting guide.