What is cert-manager? TLS certificates for Kubernetes

What is cert-manager? It's the CNCF project that gets TLS certificates for your Kubernetes workloads and renews them before they expire, so nobody has to remember a renewal date. If you've ever had a site go down because a certificate lapsed over a weekend, you already understand the problem it solves.
This explainer covers what cert-manager is, how it works, a small working example with Let's Encrypt, how it relates to similar tools, and how to try it.
Key points
- cert-manager adds certificates and certificate issuers to Kubernetes as resources, then issues and renews certificates automatically.
- Certificates and their private keys land in ordinary Kubernetes Secrets, ready for an Ingress controller, a Gateway or a Pod.
- It supports ACME (including Let's Encrypt), your own CA, self-signed certificates, HashiCorp Vault and CyberArk Certificate Manager.
- It's a CNCF graduated project: accepted on 10 November 2020, incubating from 19 September 2022, graduated on 29 September 2024.
- By default a certificate lasts 90 days and is renewed two-thirds of the way through.
What is cert-manager?
The project's own description is short: "cert-manager creates TLS certificates for workloads in your Kubernetes or OpenShift cluster". It runs as a controller in the cluster, watches the certificate resources you create, talks to an issuer to get them signed, and stores the result in a Secret.
It started at Jetstack in 2017. CNCF accepted it into the sandbox in November 2020, moved it to incubating in 2022, and announced its graduation on 12 November 2024 at KubeCon + CloudNativeCon North America in Salt Lake City. The CNCF project page records the graduation date as 29 September 2024. To graduate, the project completed a CNCF-sponsored security audit, updated its governance and moved its testing and releases to CNCF-owned infrastructure.
The graduation announcement gives a sense of scale: 500 million downloads a month, and user research suggesting 86% of new production clusters are created with cert-manager deployed.
The problem cert-manager solves
TLS certificates expire, and the shorter they live, the more often someone has to renew them. Every expiry is a small outage waiting to happen, and a cluster with dozens of services has dozens of them.
Before tools like cert-manager, teams used scripts, cron jobs and calendar reminders. They break quietly. cert-manager turns "get and renew a certificate" into a declared state that a controller keeps true, the same way a Deployment keeps the right number of Pods running.
How cert-manager works
There are four resources to know:
- Issuer and ClusterIssuer: where certificates come from. An Issuer works in one namespace; a ClusterIssuer works across the cluster.
- Certificate: what you want. A Secret name, the DNS names, the issuer to use and, optionally, the duration and renewal window.
- CertificateRequest: the request cert-manager creates from a Certificate and sends to the issuer. You rarely write these by hand.
For ACME issuers there are two more, Order and Challenge, which track the conversation with the ACME server while it checks you control the domain. It does that with an HTTP-01 challenge (a temporary path served through your Ingress) or a DNS-01 challenge (a temporary DNS record, through providers such as Route53, Cloudflare, Azure DNS and Google Cloud DNS).
When the certificate is issued, cert-manager writes it and its private key into the Secret you named. When renewal time comes, it does the whole thing again and updates the Secret in place.
After installation you'll see three Deployments in the cert-manager namespace: cert-manager (the controller), cert-manager-webhook and cert-manager-cainjector.
A small cert-manager example
Here's the common path: a ClusterIssuer for the Let's Encrypt staging server, then an Ingress that asks for a certificate. Staging certificates aren't publicly trusted, but staging has far looser rate limits, so test there first.
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-staging
spec:
acme:
email: you@example.com
server: https://acme-staging-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: letsencrypt-staging-account-key
solvers:
- http01:
ingress:
ingressClassName: nginx
Now an Ingress with one annotation. cert-manager's ingress-shim sees it and creates the Certificate for you:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: web
annotations:
cert-manager.io/cluster-issuer: letsencrypt-staging
spec:
ingressClassName: nginx
rules:
- host: www.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: web
port:
number: 80
tls:
- hosts:
- www.example.com
secretName: web-tls
Watch it happen:
kubectl get certificate
kubectl describe certificate web-tls
kubectl get certificaterequest,order,challenge
When READY shows True, the web-tls Secret holds your certificate. Once it works, create a second ClusterIssuer pointing at the production server, https://acme-v02.api.letsencrypt.org/directory, and switch the annotation.
If you'd rather not use the annotation, write the Certificate yourself:
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: web
spec:
secretName: web-tls
dnsNames:
- www.example.com
issuerRef:
name: letsencrypt-staging
kind: ClusterIssuer
duration: 2160h # 90 days
renewBefore: 360h # renew 15 days before expiry
duration and renewBefore take hours, minutes or seconds; Go durations don't accept days.
cert-manager with Gateway API
cert-manager also works with Gateway API. Put the same cert-manager.io/cluster-issuer annotation on a Gateway, and cert-manager creates a Certificate for each HTTPS listener that terminates TLS and has a hostname. The docs mark this support as beta since cert-manager 1.15. You switch it on with the Helm value config.gatewayAPI.enabled=true, and the Gateway API CRDs must be installed before cert-manager starts.
That matters now that many teams are moving from Ingress to Gateway API. Our Gateway API explainer covers the resources if they're new to you.
How cert-manager relates to similar projects
Ingress controllers with built-in ACME. Some proxies can fetch Let's Encrypt certificates themselves. That's fine for one controller, but cert-manager keeps certificates as Kubernetes resources that any controller, Gateway or Pod can use, and it supports many issuers besides ACME.
Service meshes. Istio has its own certificate authority for mesh mTLS. cert-manager doesn't replace that, but its istio-csr component lets Istio get workload certificates from a cert-manager issuer, which helps if your security team wants one PKI for everything.
Secrets managers and private CAs. Vault and CyberArk can be issuers behind cert-manager. You keep your existing CA; cert-manager handles the Kubernetes side.
Related cert-manager projects. csi-driver and csi-driver-spiffe generate the private key on the node, on demand, so the key never leaves the node or sits in a Secret.
cert-manager and certification
There's no cert-manager exam. The ideas behind it still come up across the Kubernetes certifications. TLS on Ingress, Secrets and how they're mounted, and how the control plane uses certificates are all part of day-to-day cluster work, and the security side is what the CKS goes deep on. Knowing cert-manager makes those topics concrete. Our CKS exam guide shows where they fit, and the CKS discount page has the current offer.
Reality check: in the performance-based exams you work with the tools in the exam environment. Don't count on cert-manager being installed; learn the underlying Kubernetes objects too.
How to get started with cert-manager
- Make a test cluster with kind or minikube.
- Install cert-manager with its static manifest (replace the version with the latest release from the project's releases page):
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/vX.Y.Z/cert-manager.yaml
kubectl get pods --namespace cert-manager
Helm works too, and is the easier route if you want Gateway API support.
- Start with a self-signed Issuer, since a local cluster can't pass a Let's Encrypt challenge. Create a Certificate and watch the Secret appear.
- Move to ACME on a cluster with a public DNS name, using staging first.
- Read the project page for cert-manager on CertDirectory, which collects our posts about it, then the official docs at cert-manager.io.
Pro tip: kubectl describe on a Certificate, then on its CertificateRequest, Order and Challenge, tells you exactly where an issuance is stuck. Most failures are a DNS name that doesn't resolve to your Ingress yet.
FAQ
What is cert-manager used for? It issues and renews TLS certificates for Kubernetes workloads automatically, most often to put HTTPS on an Ingress or a Gateway.
Is cert-manager free? Yes. It's open source and a CNCF graduated project.
Does cert-manager only work with Let's Encrypt? No. It supports ACME servers in general, plus self-signed certificates, your own CA, HashiCorp Vault and CyberArk Certificate Manager, and external issuers can be added.
What happens if cert-manager goes down? Certificates already in Secrets keep working until they expire. New certificates aren't issued and renewals stop until cert-manager is running again.
What is the difference between an Issuer and a ClusterIssuer? An Issuer only signs certificates for its own namespace. A ClusterIssuer can sign for any namespace in the cluster.
Install it on a test cluster this week and let it renew something for you.