Automate certificate renewal on Kubernetes Gateway API

Gateway API listeners can get their TLS certificates from cert-manager, which renews them into the Secrets the listeners reference. Shorter public lifetimes make checking this path a planned task, not a yearly one.

On this page

How do Gateway API certificates renew automatically?

cert-manager can create and renew a Certificate from a Gateway listener when that listener meets its conditions, and the Gateway API TLS guide defines the listener fields it reads: hostname, tls.mode and tls.certificateRefs. For a platform team that renews by hand today, the change is that each listener needs a certificateRefs entry pointing at a Secret that cert-manager can own, a non-empty hostname, and tls.mode set to Terminate, since Passthrough is not supported. Gateways that already meet these conditions can be annotated with cert-manager.io/issuer or cert-manager.io/cluster-issuer and left to renew. Gateways that do not will need their listeners reworked before automation takes over.

The schedule is what makes this urgent. The CA/Browser Forum Baseline Requirements set the maximum subscriber certificate validity at 200 days from 15 March 2026, at 100 days from 15 March 2027, and at 47 days from 15 March 2029. The same rules shorten the reuse of domain validation data to 200 days, then 100 days, then 10 days from 15 March 2029. A cluster renewed once a year by hand will miss renewals long before 2029 unless renewal is automated. Platform engineers own the cert-manager installation and the Gateway manifests, while security or PKI owners should confirm which CA and issuer the organization has approved, since that choice determines whether ACME is available.

Before relying on automation, confirm the Gateway API CRDs were installed before cert-manager started. The cert-manager Gateway page says to restart the cert-manager deployment if they were installed later, and it notes that cert-manager 1.14 and later is tested with Gateway API v1. Check that the Helm value config.gatewayAPI.enabled is set, and in cert-manager 1.21 confirm whether your manifests use the newer gatewayAPI.enabled name or the deprecated enableGatewayAPI form. Renewal in cert-manager defaults to two thirds of the lifetime, so a 47-day certificate renews around day 31, but the Certificate's renewBeforePercentage should be checked against the issued duration to avoid renewal loops. Confirm the exact values for your version in the cert-manager documentation.

What each lifetime step changes for Gateway listeners

This table compares the three CA/Browser Forum steps against what each one means for a cluster with Gateway API listeners. Read each row as the rule in force from that date, with the renewal and manual-step effects that follow. The main takeaway is that renewal cadence rises sharply by 2029, so the automated path for each listener must be confirmed before that date.

DateMaximum subscriber certificate validityMaximum reuse of domain and IP validation dataWhat it means for a cluster
From 15 March 2026200 days (section 6.3.2)200 daysRenewals roughly every 200 days per listener certificate. Confirm each listener with a non-empty hostname and tls.certificateRefs name is covered by a Certificate.
From 15 March 2027100 days100 daysRenewals about twice as often as in 2026. Manual renewal of Secrets referenced by listeners is no longer a workable routine.
From 15 March 202947 days10 daysRenewals roughly every 47 days, and domain validation data may need refreshing every 10 days. Automated issuance and reload of every listener Secret must be proven before this date.
Renewal timing (cert-manager default)Renews at two thirds of lifetime, leaving one third before expiryNot applicableOn a 200-day certificate, renewal starts around day 133. Check spec.renewBeforePercentage if a different lead time is needed.
Listener count to verifyListeners with Terminate mode and a certificateRefs SecretPassthrough listeners are not automatedCount each listener that cert-manager must cover. Passthrough and listeners without a hostname stay outside automated renewal.
Manual steps that stop workingCopying Secrets by hand on each renewalYearly or quarterly renewal remindersManual Secret replacement cannot keep pace at 100 and 47 day lifetimes. Replace it with an automated Issuer and Certificate per listener.

How cert-manager turns a Gateway listener into a Certificate

cert-manager can issue and renew the certificate behind a Gateway listener without you creating a Certificate resource by hand. The chain starts with the Gateway API CRDs, which must be installed before cert-manager can see Gateway objects. cert-manager's Gateway support is enabled with the Helm value config.gatewayAPI.enabled: true, and since cert-manager 1.15 it is no longer behind a feature gate. If you installed the Gateway API CRDs after cert-manager was already running, the cert-manager Gateway usage page says to run kubectl rollout restart deployment cert-manager -n cert-manager so it picks them up. Before you rely on this, confirm the CRD version you install against the cert-manager release you run, since the Gateway usage page installs the CRDs at v1.4.1 as its example and the 1.14 and later releases are tested with Gateway API v1.

Next, you tell cert-manager which issuer to use by adding an annotation to the Gateway. cert-manager.io/issuer names an Issuer in the Gateway's own namespace, and cert-manager.io/cluster-issuer names a ClusterIssuer that any namespace can use. For each listener that should carry a certificate, cert-manager creates a Certificate only when the listener has a non-empty hostname, tls.mode of Terminate (Passthrough is not supported), and a non-empty tls.certificateRefs name. In the Gateway API TLS guide, tls.mode defaults to Terminate when omitted, so confirm the field is set explicitly if your reviewers expect it. A specific hostname such as foo.example.com takes priority over a wildcard such as *.example.com, so a listener with a wildcard will not win over a more specific one on the same Gateway.

Which Gateway certificate paths cert-manager supports

This path uses the cert-manager.io/issuer annotation on a Gateway to name an Issuer that lives in the same namespace as the Gateway. The Issuer, and the Secret it writes the certificate to, stay within one namespace, so ownership is simple to reason about and access can be scoped to the team that runs that namespace. It suits teams that keep each Gateway and its certificates within one application boundary. Before you rely on it, confirm the Gateway API CRDs are installed and that cert-manager has Gateway API support enabled through config.gatewayAPI.enabled: true. The cert-manager Gateway documentation notes that if the CRDs were installed after cert-manager started, you should restart the cert-manager deployment.

  • Namespace match: The Issuer must be in the same namespace as the Gateway, because the annotation does not reach across namespaces.
  • Listener requirements: cert-manager creates a Certificate only when the listener has a non-empty hostname, tls.mode set to Terminate and a non-empty tls.certificateRefs name. Passthrough is not supported.
  • Secret kind: Each certificateRefs entry used by cert-manager must have kind Secret and group core or empty.
  • No cross-namespace Secrets: If a namespace is given in certificateRefs, it must match the Gateway namespace. cert-manager does not support cross-namespace Secrets on this path.
  • Tested API versions: cert-manager 1.14 and later is tested with Gateway API v1. Older versions may work through conversion but are untested.

Before deploying, check that the Issuer and Gateway share a namespace and that every listener you want managed meets the hostname, mode and Secret requirements above.

Set up cert-manager Gateway certificates in order

This sequence connects cert-manager to the Gateway API so that a Gateway listener can request, hold and renew its own TLS certificate. Each step builds on the one before it, and the sequence ends with a Certificate and a Secret that the Gateway reads. Work through the steps in order on a cluster you can test on before production.

  1. Install or upgrade cert-manager with Gateway support

    Install cert-manager with Helm, or upgrade an existing release, and turn on Gateway API support by setting config.gatewayAPI.enabled to true. The documented install command uses the cert-manager chart from the Jetstack Quay registry at version v1.21.3 in the cert-manager namespace, with crds.enabled set to true. Gateway API support is no longer behind a feature gate from cert-manager 1.15 onward, so this value is the switch to check. Confirm the release is running with the helm list command and that the cert-manager pods reach a ready state. Check the cert-manager releases page for the Kubernetes versions your release supports before you install.

  2. Install the Gateway API CRDs at v1.4.1

    Apply the Gateway API standard install manifest at version v1.4.1 with kubectl apply --server-side, using the standard-install.yaml file that the cert-manager Gateway page names. Server-side apply avoids conflicts when the CRDs already exist in the cluster. Cert-manager 1.14 and later is tested with Gateway API v1, and older v1beta1 and v1alpha2 resources should work through conversion without being tested. Check the result by listing the Gateway API resource types, such as gateways and httproutes, to confirm the CRDs are registered. If your platform already ships a different Gateway API version, review that before you apply, because a mismatch can change which resources cert-manager sees.

  3. Restart cert-manager if the CRDs arrived late

    If you installed the Gateway API CRDs after cert-manager had already started, restart the cert-manager deployment so it picks them up. The documented command is kubectl rollout restart deployment cert-manager in the cert-manager namespace. Skip this step if the CRDs were in place before cert-manager started. Wait for the rollout to finish, then confirm the cert-manager pods are running again. Without this restart, cert-manager may not watch Gateway resources, and no Certificate will appear when you add a Gateway listener later in the sequence.

  4. Define an Issuer or ClusterIssuer with ACME settings

    Create an Issuer in the Gateway namespace, or a ClusterIssuer usable from any namespace, that holds the ACME configuration cert-manager will use to obtain certificates. The ACME configuration covers the server URL of the ACME directory, the email address for the account, the privateKeySecretRef that names the Secret holding the account key, and the solvers that prove domain control, which are http01 or dns01. Choose the ACME server and solver for your environment and confirm them against your certificate authority's documentation. Apply the resource and check its status condition to confirm the account registration succeeded before you move on.

  5. Add the issuer annotation and a TLS listener

    On the Gateway resource, add the cert-manager annotation that names your issuer: cert-manager.io/issuer for an Issuer in the same namespace, or cert-manager.io/cluster-issuer for a ClusterIssuer. Then add a listener with a non-empty hostname, tls.mode set to Terminate, and a tls.certificateRefs entry with kind Secret, group core or empty, and a name. Passthrough mode is not supported for this flow, and a certificateRefs entry in another namespace will not work for cert-manager. Apply the Gateway and confirm that the listener shows as accepted in its status. If the listener lacks any of these fields, cert-manager will not create a Certificate for it.

  6. Check the Certificate and Secret that appear

    After the listener is in place, cert-manager should create a Certificate resource for the listener's hostname and then a Secret named in tls.certificateRefs once the ACME order completes. List the Certificate resources in the Gateway namespace and check that the Ready condition is true. Then confirm the Secret exists and holds a certificate for the expected hostname. The default certificate duration is 90 days, and cert-manager renews at two thirds of the lifetime, so the renewal window is determined by the duration cert-manager issues. Review the Certificate's renewal settings before you rely on them, because a shorter issued duration changes when renewal happens.

What must be in place before cert-manager can renew Gateway certificates

cert-manager can only create and renew certificates for Gateway listeners when the cluster, the Gateway API resources and the validation path all meet specific conditions. Check each of the items below before you rely on automated renewal for listener certificates.

Supported Kubernetes versions

The cert-manager 1.21 release supports Kubernetes 1.33 to 1.36 and OpenShift 4.20 to 4.22, according to the cert-manager releases page read on 4 December 2026. Confirm your cluster version falls within that range before you upgrade or install, and check the releases page again for the current status, since the page also lists 1.20 and expects a 1.22 release around November 2026. Verify the status of your target release before you plan an upgrade.

cert-manager releases

Gateway API version and channel

cert-manager 1.14 and later is tested with Gateway API v1, while v1beta1 and v1alpha2 should work through conversion but are untested. Install the Gateway API CRDs before you rely on Gateway-based issuance, and note that the cert-manager Gateway guide installs them at v1.4.1 with a server-side apply. Confirm the version and channel that match your cluster before you enable Gateway support.

cert-manager Gateway usage

CRD order and controller restart

Enable Gateway support in cert-manager with the Helm value config.gatewayAPI.enabled: true. If the Gateway API CRDs were installed after cert-manager started, cert-manager may not pick them up. The docs say to run kubectl rollout restart deployment cert-manager -n cert-manager in that case, so check the order of installation during your rollout.

DNS and HTTP reachability

The validation method you choose determines what must be reachable. HTTP-01 validation requires the ACME server to reach the solver over HTTP for each hostname on the listener, while DNS-01 requires that you can create the challenge records in DNS for the zone. Confirm that the hostnames on each listener resolve correctly and that the validation path works before you expect renewals to succeed.

cert-manager ACME configuration

RBAC for Secrets in the Gateway namespace

cert-manager writes the issued certificate to the Secret named in each listener's tls.certificateRefs entry, so the controller needs permission to read and write Secrets in the Gateway namespace. Cross-namespace Secrets are not supported for cert-manager, and a certificateRefs namespace must match the Gateway namespace. Review the cert-manager service account's role bindings and confirm they cover the Gateway namespace before you enable automation.

ListenerSet requirements

ListenerSet support in cert-manager needs Gateway API v1.5 or later on the standard channel, the Helm value config.gatewayAPI.enableListenerSet: true, and the ListenerSets: true feature gate. The 1.21 release also adds cert-manager.io/ignore-tls-listeners to exclude specific TLS listeners, and acme.cert-manager.io/http01-parentreffallback: "true" to route solver HTTPRoutes through the parent Gateway. Check these settings if you use ListenerSets.

cert-manager 1.21 release notes

How to confirm Gateway certificates renew before expiry

Renewal on a Gateway listener is not finished when the Secret is created. The check that matters is whether cert-manager is still renewing the certificate before it expires, and the place to start is the Certificate resource that cert-manager creates from the listener. Its status conditions show whether the most recent issuance succeeded and when the certificate is due. The Secret named in the listener's tls.certificateRefs holds the live certificate, so read its expiry date directly from that Secret as an independent check. Between them, these two views confirm both what cert-manager believes and what the Gateway is actually serving.

Timing follows from the lifetime. By default cert-manager renews at two thirds of the certificate lifetime, leaving one third before expiry. The cert-manager documentation recommends setting spec.renewBeforePercentage on the Certificate so the renewal window is expressed as a share of the actual duration, which avoids renewal loops when an issuer returns a shorter certificate than requested. Because public lifetimes are shrinking under the CA/Browser Forum schedule, the same fraction produces a shorter absolute window over time, so confirm the effective renewal point for each certificate rather than assuming one value fits all.

The sources listed on this page do not publish a specific alerting setup, so confirm monitoring tooling in your own environment. Teams commonly alert on certificate expiry thresholds and on failed cert-manager issuance, and read cert-manager's controller logs when a renewal stalls. Keep a dated record of each issuance and renewal, including the Certificate status, the Secret expiry date and the issuer used, because an auditor or customer may ask for that trail.

Questions teams ask about Gateway API certificate renewal

Does cert-manager support Gateway API certificates?

Yes. cert-manager can create Certificates from Gateway API listeners, and support is enabled with the Helm value config.gatewayAPI.enabled: true. Since cert-manager 1.15 this support is no longer behind a feature gate. If you installed the Gateway API CRDs after cert-manager started, restart it with kubectl rollout restart deployment cert-manager -n cert-manager. The cert-manager Gateway page installs the CRDs at v1.4.1 using standard-install.yaml with kubectl apply --server-side. cert-manager 1.14 and later is tested with Gateway API v1, while v1beta1 and v1alpha2 should work through conversion but are untested. Confirm the CRD version you run against the cert-manager release you deploy.

Which annotation should I use for an Issuer versus a ClusterIssuer on a Gateway?

Use cert-manager.io/issuer when the Issuer lives in the same namespace as the Gateway. Use cert-manager.io/cluster-issuer when you want a ClusterIssuer, which can be referenced from any namespace. The choice affects who can manage issuance: a namespaced Issuer keeps configuration with the team that owns the Gateway, while a ClusterIssuer centralizes it for the platform team. Check which scope your organization's ownership model needs before you standardize on one.

How often do Gateway API certificates renew by default?

cert-manager Certificates default to a spec.duration of 90 days. By default cert-manager renews at two thirds of the certificate lifetime, which leaves one third before expiry. For a 90-day certificate that means renewal starts around day 60. You can set spec.renewBefore as an absolute lead time or spec.renewBeforePercentage as a share of the actual duration. The docs recommend renewBeforePercentage to avoid renewal loops when the issued duration is shorter than requested. Public certificate lifetimes are shrinking under CA/Browser Forum rules, with a maximum of 200 days from 15 March 2026, 100 days from 15 March 2027 and 47 days from 15 March 2029. Confirm your duration and renewal settings against the lifetime your certificate authority issues.

What happens when a Gateway certificate renewal fails?

The sources listed on this page do not describe the exact retry behavior or alert wiring for a failed Gateway certificate renewal, so confirm these with the cert-manager documentation for your release and test them in your own environment. Plan for failure anyway: because renewal starts at two thirds of the lifetime by default, a failed attempt leaves a window before expiry to respond. Check the Certificate's status and the cert-manager logs, and monitor expiry so a stalled renewal is caught before the listener serves an expired certificate. For ACME issuers, also confirm how the solver (http01 or dns01) and the Gateway's reachability affect validation.

Do wildcard listener hostnames work for automated certificates?

cert-manager creates a Certificate from a listener only when the listener has a non-empty hostname, tls.mode set to Terminate and a non-empty tls.certificateRefs name. A wildcard such as *.example.com can be a listener hostname, but a specific hostname such as foo.example.com takes priority over a wildcard in the Gateway API TLS guide. Plan your listeners so the hostname that should match a given certificate is unambiguous. Whether a particular wildcard certificate can be issued depends on your certificate authority and its validation method, so confirm that with the issuer before you rely on it.

Are cross-namespace Secrets supported for Gateway certificate references?

cert-manager does not support cross-namespace Secrets for its Gateway integration. A certificateRefs entry it uses must have kind Secret and group core or empty, and if a namespace is given it must match the Gateway namespace. The Gateway API itself can reference a Secret in another namespace, but only if that namespace has a ReferenceGrant whose from block names the Gateway group, kind and namespace and whose to block names the core group and Secret kind. Keep the Secret in the Gateway's namespace if you want cert-manager to manage it.

Should we get outside help to automate Gateway API certificate renewal?

It depends on how many clusters, Gateways and issuers you run and how much of the setup your team has already done. The work includes installing cert-manager and the Gateway API CRDs at matching versions, choosing namespaced or cluster-scoped issuers, defining renewal windows, and testing failure paths before expiry. Many teams handle a single cluster in-house and bring in help for multi-cluster standardization, ACME solver design, or validation of renewal under real failure conditions. DeployOpen can plan, implement and document this as a fixed-scope engagement, with the scope and deliverables agreed in writing before work starts. A quote follows from that written scope.

How a Gateway listener certificate is issued and renewed

The flow starts at a Gateway carrying the cert-manager.io/issuer or cert-manager.io/cluster-issuer annotation. cert-manager creates a Certificate only for a listener with a non-empty hostname, tls.mode Terminate and a non-empty certificateRefs name. The Certificate then obtains a certificate from the ACME certificate authority after validation, and stores it in the Secret that certificateRefs references, which the listener serves. Check that the Secret sits in the Gateway namespace, since cross-namespace Secrets are not supported for cert-manager, and that the Gateway API version matches your cert-manager release.

The Gateway listener serves the Secret that cert-manager renews from the ACME certificate authority.

How DeployOpen helps teams automate Gateway API certificates

DeployOpen scopes, builds and hands over Gateway API certificate automation on your own clusters, with cert-manager attached to Gateway listeners and checked against your renewal window. Each engagement is agreed in writing before work starts, and the result is documented for your platform team to run.

How we scope

  • Inventory the Gateways, listeners and hostnames that need publicly trusted certificates before any change is made.
  • Confirm the Gateway API version and cert-manager release your clusters run, and which Gateway API channel is in use.
  • Agree the written scope for Gateway API certificate automation, including which issuers and namespaces are covered.

How we build

  • Enable cert-manager Gateway support with the Helm value config.gatewayAPI.enabled, then check the install against your release.
  • Attach issuers to Gateways with the cert-manager.io/issuer or cert-manager.io/cluster-issuer annotations, matched to your namespace layout.
  • Verify each listener has a hostname, tls.mode Terminate and a certificateRefs Secret name, then test renewal timing against your certificate lifetime.

How we hand over

  • Document each Gateway, listener and Secret mapping so your team can trace which certificate serves which hostname.
  • Record the renewal settings in use, including whether renewal is set by duration or by renewBeforePercentage.
  • Hand over a runbook covering upgrades, CRD changes and the restart step needed when Gateway API CRDs are installed late.

How we support

  • Ongoing support and upgrades for cert-manager and Gateway API versions are available as a retainer.
  • Continuous testing can confirm renewals still complete as lifetimes move toward the 100-day and 47-day schedules.
  • Confirm current support and tested versions for your cert-manager and Gateway API combination in the cert-manager releases documentation.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.