Issue and Auto-Renew TLS Certificates with cert-manager
Advanced · 30 minutes · 4 tasks, checked automatically · 100 points
In this advanced lab you will install cert-manager into a kind cluster, configure a self-signed ClusterIssuer, issue a TLS Certificate resource for a sample NGINX workload, and verify that cert-manager manages the certificate lifecycle end-to-end. By the end you will understand how cert-manager integrates with the Kubernetes API to automate TLS provisioning and renewal without cloud dependencies.
What you’ll learn
- Install cert-manager v1.14 via Helm and verify all control-plane pods are running
- Create a self-signed CA ClusterIssuer and a subordinate CA Issuer to sign workload certificates
- Issue a TLS Certificate for an NGINX deployment and confirm the secret is populated with a valid cert
- Mount the TLS secret into the NGINX pod and expose it via NodePort, then verify HTTPS connectivity
How this lab works
- Start the lab: One click starts a real Kubernetes cluster on your computer (kind), with kubectl ready in a toolbox terminal.
- Work through 4 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work reads your live cluster and says, task by task, what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Cluster: A real Kubernetes cluster on your computer (kind)
- Kubernetes: 1.34.8
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
- A kind cluster created in the Kubernetes Playground
Topics: cert-manager, tls, pki, certificates, helm, nginx, security, clusterissuer, kubernetes
Create a free account to start this lab.
Keep going
- Harden Workloads with Pod Security Standards and SecurityContext
- Enforce Pod Security Admission at the Namespace Level
- Read-Only Root Filesystems and seccomp Profiles
- Aggregated ClusterRoles for Extensible Permissions
- Bound ServiceAccount Tokens for Workload Identity
- Sync External Secrets with the External Secrets Operator