cert-manager
cert-manager5 is a tool that automates certificate management. This can be integrated with Istio gateways to manage TLS certificates.
Configuration
Consult the cert-manager installation documentation6 to get started. No special changes are needed to work with Istio.
Usage
Istio Gateway
cert-manager can be used to write a secret to Kubernetes, which can then be referenced by a Gateway.
To get started, configure an
Issuer
resource, following the cert-manager issuer documentation7.Issuer
s are Kubernetes resources that represent certificate authorities (CAs) that are able to generate signed certificates by honoring certificate signing requests. For example: anIssuer
may look like:Next, configure a
Certificate
resource, following the cert-manager documentation8. TheCertificate
should be created in the same namespace as theistio-ingressgateway
deployment. For example, aCertificate
may look like:Once we have the certificate created, we should see the secret created in the
istio-system
namespace. This can then be referenced in thetls
config for a Gateway undercredentialName
:
Kubernetes Ingress
cert-manager provides direct integration with Kubernetes Ingress by configuring an
annotation on the Ingress object9.
If this method is used, the Ingress must reside in the same namespace as the
istio-ingressgateway
deployment, as secrets will only be read within the same namespace.
Alternatively, a Certificate
can be created as described in Istio Gateway,
then referenced in the Ingress
object: