k8wiz
cert-manager
Hard
Integration

How do you get cert-manager to create and manage a Certificate for an Ingress automatically?

Select your answer:

Show answer and explanation

Answer: Add a cert-manager.io/cluster-issuer annotation and a tls section

Explanation

cert-manager's ingress-shim watches Ingresses with those annotations. For each tls entry it creates a Certificate for the listed hosts, stored in the secretName that the Ingress controller already reads, and it keeps the Certificate in sync when you edit the Ingress. Gateway API Gateways work the same way when that support is enabled.