// Cloud-Native Kubernetes • Ingress & Gateway API
Automating Wildcard SSL with cert-manager and RFC 2136
Configure Kubernetes cert-manager with the native built-in RFC 2136 DNS-01 solver. Secure Ingress controllers, Gateway API routes, and microservices with automatic wildcard certificates and rapid propagation (typically 0.2–5s).
📋 Prerequisites
- An active domain on OnlyDNS.
- A TSIG Key generated in the OnlyDNS Portal or via CLI (
onlydns tsig create --algo hmac-sha256). - A Kubernetes cluster with
cert-managerinstalled (v1.10+).
1
Create Kubernetes Secret for TSIG Key
Create a Kubernetes Secret inside the cert-manager namespace to securely store your OnlyDNS base64 TSIG secret:
2
Create ClusterIssuer Resource
Define a cluster-wide ClusterIssuer referencing OnlyDNS primary nameserver and the TSIG secret:
kubectl apply -f cluster-issuer.yaml
🔒 Least-Privilege Security Tip: In the OnlyDNS Portal or REST API, restrict this TSIG key to only update the
_acme_challenge subdomain so cert-manager in Kubernetes cannot modify other DNS records.
3
Request Wildcard Certificate on Ingress
Attach the cluster issuer annotation to any Kubernetes Ingress (Nginx Ingress, Traefik, Cilium, etc.) or create a standalone Certificate resource:
kubectl apply -f ingress-wildcard.yaml
kubectl get certificate -w