- Install cert-manager from a release manifest
- Create a self-signed Issuer
- Request a Certificate resource
- Verify cert-manager created the TLS Secret
kubectl is configured to talk to the target cluster.
1) Verify the cert-manager manifest URL
Confirm the release manifest URL is set in your environment:2) Install cert-manager
Apply the approved cert-manager release manifest. The manifest installs the CRDs for cert-manager (Certificate, Issuer, etc.) and deploys the cert-manager controller, webhook, and CA injector into thecert-manager namespace.
Wait for cert-manager deployments to become available before creating Issuer or Certificate resources. The API server contacts the cert-manager webhook on resource creation; if the webhook is not ready, the API server may reject valid objects.
3) Create a self-signed Issuer
An Issuer is a namespaced resource that defines how certificates are signed. For demos or local testing, a self-signed Issuer is convenient because it does not require an external CA. issuer.yaml:Use a
ClusterIssuer when you want an issuer available cluster-wide. For simple demos and per-namespace control, a namespaced Issuer is preferable.4) Request a Certificate
Create a Certificate resource which tells cert-manager:- the Secret name to write
- the DNS names the certificate should cover
- which Issuer to use to sign the certificate
5) Inspect the TLS Secret
cert-manager writes the signed certificate and key into a Kubernetes Secret of typekubernetes.io/tls. The Secret usually contains these keys: tls.crt, tls.key, and often ca.crt.
Quick reference: resources and use cases
What cert-manager automates
- Private key generation
- Creating CertificateRequest objects
- Submitting CSR to the chosen Issuer
- Storing signed certificate and key in a Secret
- Automatic renewal before expiry (operator reconciles resources)
References
- cert-manager documentation: https://cert-manager.io/docs/
- cert-manager GitHub releases: https://github.com/cert-manager/cert-manager/releases
- Learn by Doing: AIOps Foundations - Intelligent Monitoring With Prometheus & Grafana: https://learn.kodekloud.com/user/courses/aiops-foundations-intelligent-monitoring-with-prometheus-grafana