/kubernetes-platform-skills:cert-manager-tls-automationfrom kubernetes-platform-skills
Guides installing and configuring cert-manager for automated TLS certificate issuance and renewal on Kubernetes, including ACME challenges, private-CA, and Ingress/Istio integration.
Ships in kubernetes-platform-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
cert-manager turns TLS certificate issuance and renewal into a
Kubernetes-native, declarative, continuously-reconciled process: a
Certificate resource describes desired state, and cert-manager's
controllers (a canonical example of the Operator/CRD/reconcile-loop
pattern) handle requesting, validating, and renewing the corresponding
Secret automatically. Without it, TLS certs are a manual renewal
process that reliably fails the same way — someone forgets, the cert
expires, and a production outage results from an entirely preventable
cause. This skill covers Issuer/ClusterIssuer setup, ACME challenge
types, private-CA issuance, and wiring automated certs into Ingress and
Istio.
Issuer (namespace-scoped) and a ClusterIssuer
(cluster-wide) for a given trust source.Certificate resource stuck Ready: False or a renewal
that silently didn't happen before expiry.cert-manager.io/v1; older v1alpha2/
v1alpha3 API versions are long removed — confirm any inherited
manifests use the current v1 API group before applying to a current
cert-manager install).CA Issuer type for fully internal,
non-public-trust use cases (internal mTLS, dev/test).Install cert-manager via its official Helm chart, including CRDs:
helm repo add jetstack https://charts.jetstack.io
helm repo update
helm install cert-manager jetstack/cert-manager \
--namespace cert-manager --create-namespace \
--version v1.15.1 \
--set crds.enabled=true
kubectl get pods -n cert-manager # controller, webhook, cainjector all Running
Create a ClusterIssuer for Let's Encrypt via HTTP-01 (simplest
setup, works for any single-hostname cert where the Ingress already
routes the ACME solver path publicly):
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
email: [email protected]
privateKeySecretRef: { name: letsencrypt-prod-account-key }
solvers:
- http01:
ingress:
ingressClassName: nginx
Start against Let's Encrypt's staging endpoint
(https://acme-staging-v02.api.letsencrypt.org/directory) while
validating the setup, then switch to the production endpoint —
Let's Encrypt's production ACME server enforces per-domain rate
limits that a misconfigured test loop can exhaust for real.
Use DNS-01 for wildcard certificates or when port 80 isn't publicly reachable:
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata: { name: letsencrypt-dns }
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
email: [email protected]
privateKeySecretRef: { name: letsencrypt-dns-account-key }
solvers:
- dns01:
route53:
region: us-east-1
hostedZoneID: <HOSTED_ZONE_ID>
selector:
dnsZones: ["example.com"]
The credential cert-manager uses to call the DNS provider's API (an IAM role via IRSA on EKS, a service account key, etc.) should itself follow least-privilege workload-identity practice — see managed-kubernetes-eks-aks-gke for the IRSA/workload-identity setup pattern that should back this rather than a static DNS-provider API key mounted as a Secret.
Request a certificate via Ingress annotation (most common path —
cert-manager watches Ingress resources and creates the Certificate
automatically):
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
tls:
- hosts: ["payments.example.com"]
secretName: payments-example-com-tls
Or create the Certificate resource directly for non-Ingress
consumers (a Deployment mounting the Secret itself, a mesh gateway):
apiVersion: cert-manager.io/v1
kind: Certificate
metadata: { name: payments-example-com, namespace: payments }
spec:
secretName: payments-example-com-tls
issuerRef: { name: letsencrypt-prod, kind: ClusterIssuer }
dnsNames: ["payments.example.com"]
duration: 2160h # 90d
renewBefore: 360h # renew 15d before expiry
Set up a private CA for internal-only services that don't need public trust:
apiVersion: cert-manager.io/v1
kind: Issuer
metadata: { name: internal-ca, namespace: payments }
spec:
ca:
secretName: internal-ca-key-pair # pre-existing CA cert+key Secret
For a fully self-managed root, cert-manager can also bootstrap a
self-signed root and an intermediate CA Issuer chained from it —
appropriate for internal mTLS where distributing a private CA's trust
bundle to clients is feasible.
Wire automated certs into Istio's ingress gateway rather than Kubernetes Ingress, when the mesh's own gateway is the TLS termination point:
apiVersion: cert-manager.io/v1
kind: Certificate
metadata: { name: gateway-cert, namespace: istio-system }
spec:
secretName: gateway-cert-tls
issuerRef: { name: letsencrypt-prod, kind: ClusterIssuer }
dnsNames: ["payments.example.com"]
apiVersion: networking.istio.io/v1
kind: Gateway
metadata: { name: payments-gateway, namespace: istio-system }
spec:
servers:
- port: { number: 443, name: https, protocol: HTTPS }
tls: { mode: SIMPLE, credentialName: gateway-cert-tls }
hosts: ["payments.example.com"]
See service-mesh-istio for the rest of the Gateway/VirtualService setup this depends on; note this automates the gateway's external TLS cert, separate from Istio's own internally-managed mTLS between sidecars.
Verify issuance and renewal:
kubectl describe certificate payments-example-com -n payments
kubectl get certificaterequests -n payments
kubectl get order,challenge -n payments # ACME-specific intermediate resources
A healthy Certificate shows Ready: True with a Reason of
Issued. cert-manager renews automatically starting at
renewBefore prior to expiry — verify this actually happened over
time (kubectl get secret <name> -o jsonpath='{.metadata.annotations}'
shows the last-renewed timestamp) rather than assuming the
renewBefore config guarantees it silently worked.
*.apps.example.com certificate
is simpler to reason about than dozens of per-host certs, at the cost
of a slightly larger blast radius if that single private key is ever
compromised.ClusterIssuer DNS-01 credentials (IAM role, service account)
to only the specific hosted zone(s) cert-manager needs to write
TXT records to — not broader DNS-zone or account-wide permissions.renewBefore with real margin (the common default renews at 2/3
of certificate lifetime; for Let's Encrypt's 90-day certs, renewing
15–30 days before expiry gives room to notice and fix a stuck renewal
before it becomes a live outage).Certificate resources for Ready: False as a first-class
alert, not just certificate-expiry monitoring on the resulting Secret
— catching a stuck challenge days before expiry is far cheaper than
reacting to an already-expired cert.Issuers (not a cluster-wide ClusterIssuer)
when different teams/namespaces should use different trust sources or
when a namespace's issuer credentials shouldn't be usable
cluster-wide.Symptom: A Certificate stays Ready: False indefinitely, and
kubectl get challenge shows a challenge stuck in a pending/error
state.
Fix: For HTTP-01, confirm the Ingress controller is actually
routing /.well-known/acme-challenge/... externally (a restrictive
NetworkPolicy, WAF rule, or auth-requiring Ingress annotation can
block the solver path) — cert-manager creates a temporary Ingress/Pod
for the challenge, but anything blocking traffic to it upstream will
still cause a failure. For DNS-01, confirm the credential used
actually has write access to the specific hosted zone referenced.
Symptom: A wildcard certificate request fails immediately, citing
an unsupported challenge type.
Fix: ACME's HTTP-01 challenge cannot validate a wildcard domain by
protocol design — wildcard certs require DNS-01. Switch the Issuer's
solver configuration (or add a second solver selected by
dnsZones/dnsNames match) rather than trying to force HTTP-01 for a
*.example.com request.
Symptom: Let's Encrypt issuance suddenly starts failing cluster- wide with a rate-limit error. Fix: Production ACME rate limits (per registered domain, per week) were exhausted, usually by a misconfigured retry loop hitting production instead of staging during setup/debugging, or by issuing many near-duplicate certs (one per subdomain) instead of a single wildcard. Switch to the staging endpoint for any further debugging, and consolidate to a wildcard cert where the number of hostnames makes per-host certs impractical.
Symptom: A Certificate shows Ready: True but the actual
Ingress/Gateway serving traffic still presents an old or self-signed
certificate.
Fix: Confirm the Ingress/Gateway resource references the exact
secretName the Certificate writes to, and that it lives in the
same namespace (Secrets are not automatically synced across
namespaces) — a mismatched or stale secretName reference silently
leaves the consumer serving whatever cert it already had.
Symptom: Deleting a Certificate resource (or its namespace)
unexpectedly also removes the TLS Secret in use by a live Ingress.
Fix: By default cert-manager's Certificate controls the
lifecycle of its target Secret's content (rotating it on renewal)
but does not delete the Secret on Certificate deletion unless
garbage-collection/owner-reference cleanup is configured to do so in
your version/settings — regardless, > Warning: deleting a
Certificate or its namespace on a resource actively serving
production traffic is a availability-impacting action; confirm no
live Ingress/Gateway still references that Secret first, and prefer
updating/replacing the Certificate over deleting it.
Scenario: Issue a Let's Encrypt certificate for
payments.example.com via DNS-01 (Route 53), validate against staging
first, then cut over to production and wire it into the existing
payments-api Ingress.
# staging ClusterIssuer for validation
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata: { name: letsencrypt-staging }
spec:
acme:
server: https://acme-staging-v02.api.letsencrypt.org/directory
email: [email protected]
privateKeySecretRef: { name: letsencrypt-staging-account-key }
solvers:
- dns01:
route53: { region: us-east-1, hostedZoneID: <HOSTED_ZONE_ID> }
selector: { dnsZones: ["example.com"] }
kubectl apply -f staging-issuer.yaml
kubectl patch ingress payments-api -n payments --type merge \
-p '{"metadata":{"annotations":{"cert-manager.io/cluster-issuer":"letsencrypt-staging"}}}'
kubectl describe certificate payments-example-com-tls -n payments
Once Ready: True is confirmed against staging (the browser will show
an untrusted staging-CA cert — this is expected), cut over to
production:
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata: { name: letsencrypt-prod }
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
email: [email protected]
privateKeySecretRef: { name: letsencrypt-prod-account-key }
solvers:
- dns01:
route53: { region: us-east-1, hostedZoneID: <HOSTED_ZONE_ID> }
selector: { dnsZones: ["example.com"] }
kubectl apply -f prod-issuer.yaml
kubectl patch ingress payments-api -n payments --type merge \
-p '{"metadata":{"annotations":{"cert-manager.io/cluster-issuer":"letsencrypt-prod"}}}'
kubectl delete certificate payments-example-com-tls -n payments # forces re-issuance against prod issuer
kubectl describe certificate payments-example-com-tls -n payments
curl -vI https://payments.example.com 2>&1 | grep -i "issuer"
The final curl shows a certificate issued by Let's Encrypt (not the
staging CA), and kubectl get certificate payments-example-com-tls -n payments -o jsonpath='{.status.renewalTime}' confirms cert-manager has
scheduled automatic renewal well ahead of the 90-day expiry — no manual
renewal step required going forward.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin kubernetes-platform-skills35 skills in this plugin
/cni-networking-calico-flannelGuides choosing and installing a Kubernetes CNI plugin — Calico vs. Flannel — including NetworkPolicy enforcement capability differences, BGP vs. VXLAN/overlay data paths, and IP address management (IPAM) tradeoffs. Use when a user asks to "choose a CNI plugin for Kubernetes," "enable NetworkPolicy enforcement," "set up Calico with BGP peering," "install Flannel," "debug pod-to-pod connectivity across nodes," or "migrate from Flannel to Calico."
/complete-kubernetes-deployment-on-aks-from-scratchSequences a complete, end-to-end AKS deployment from a bare Azure subscription to a production-ready cluster serving a first workload — Azure landing zone prerequisites, AKS cluster and node pool provisioning, Azure CNI (with the Calico/Cilium alternative noted), ingress (Application Gateway Ingress Controller vs. ingress-nginx), cert-manager with Azure DNS, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on AKS from scratch," "set up a new AKS environment end to end," "build a production AKS cluster from a fresh Azure subscription," or "give me the full sequence to go from nothing to a working AKS cluster."
/complete-kubernetes-deployment-on-eks-from-scratchSequences a complete, end-to-end EKS deployment from a bare AWS account to a production-ready cluster serving a first workload — landing zone/IAM prerequisites, EKS cluster and node group provisioning, VPC CNI (with the Calico/Cilium alternative noted), ingress (ALB vs. ingress-nginx), cert- manager with Route 53 DNS-01, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/ orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on EKS from scratch," "stand up a new EKS environment end to end," "build a production EKS cluster from a fresh AWS account," or "give me the full sequence to go from nothing to a working EKS cluster."
/complete-kubernetes-deployment-on-gke-from-scratchSequences a complete, end-to-end GKE deployment from a bare GCP project to a production-ready cluster serving a first workload — GCP landing zone prerequisites, GKE cluster and node pool provisioning, VPC-native/ Dataplane V2 CNI (with the Calico alternative noted), ingress (GKE Ingress/Gateway API vs. ingress-nginx), cert-manager with Cloud DNS, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on GKE from scratch," "set up a new GKE environment end to end," "build a production GKE cluster from a fresh GCP project," or "give me the full sequence to go from nothing to a working GKE cluster."
/complete-kubernetes-deployment-on-oke-oci-from-scratchSequences a complete, end-to-end OKE (Oracle Container Engine for Kubernetes) deployment from a bare OCI tenancy to a production-ready cluster serving a first workload — OCI landing zone prerequisites (Compartments, Dynamic Groups), OKE Enhanced cluster and node pool provisioning, VCN-Native pod networking (with the Calico NetworkPolicy add-on noted), ingress (Native Ingress Controller vs. ingress-nginx), cert-manager with OCI DNS via a community webhook solver, conformance validation, a Helm-deployed workload, and a node/cluster health baseline. This is an integration/orchestration skill sequencing several existing tool-specific skills in the correct order and flagging the handoff points between them — it does not restate their internals. Use when a user asks to "deploy a Kubernetes cluster on OKE from scratch," "set up OKE on OCI end to end," "build a production OKE cluster from a fresh OCI tenancy," or "give me the full sequence to go from nothing to a working OKE cluster."
/complete-kubernetes-deployment-on-prem-with-kubeadm-from-scratchSequences a complete, end-to-end self-managed on-prem Kubernetes deployment from bare-metal hosts to a production-ready HA cluster serving a first workload — physical/network prerequisites, kubeadm init/join HA control plane with kube-vip, CNI (Calico/Flannel), MetalLB for LoadBalancer Services (bare metal has no cloud load balancer), ingress-nginx, cert-manager with a self-hosted internal CA or ACME, conformance validation, etcd backup setup, and a Helm-deployed first workload. This is an integration/orchestration skill that sequences several existing tool-specific skills in the correct order and flags the handoff points between them — it does not restate their internals. Use when a user asks to "deploy Kubernetes on-prem from scratch," "build a bare-metal Kubernetes cluster end to end with kubeadm," "set up a self-managed HA cluster on our own hardware," "get LoadBalancer Services working on bare metal," or "give me the full sequence to go from bare servers to a working self-managed Kubernetes cluster."
Other plugins' skills for the same job