Some Kong Gateway certificates can only be configured through kong.conf. Those values are rendered into the NGINX configuration when a node boots, so if cert-manager rotates the Secret you mounted, the file on disk changes but Kong Gateway keeps serving the old certificate. The node has to be replaced before it reads the new file.
Stakater Reloader watches ConfigMaps and Secrets and performs a rolling restart of the workloads that consume them. In this guide, you’ll mount a cert-manager Secret into a data plane, watch the rotation fail to take effect, then set up Reloader and confirm that the pods are replaced automatically.
This guide uses
ssl_cert, the default certificate for the proxy listener, because it’s the easiest to observe withopenssl. Reloader restarts pods, so use it only when a certificate has no entity equivalent:
admin_ssl_certadmin_gui_ssl_certstatus_ssl_certclient_ssl_certcluster_certlua_ssl_trusted_certificateFor proxy certificates, including the
ssl_certused in this guide, use Certificate and SNI entities in production instead. They rotate with no restart at all.