During an Amazon EKS ingress migration, an application hostname can keep pointing at the old load balancer while the new Gateway is being prepared. That creates a sequencing problem for TLS. The new entry point needs a trusted certificate before it takes traffic, yet an HTTP-based certificate challenge reaches whichever entry point public DNS currently selects. DNS-based validation breaks that dependency. In this migration, we used Route 53 to obtain a shared wildcard certificate for Envoy Gateway before moving application DNS.

The EKS case study uses anonymized hostnames under example.com. The configuration and commands below illustrate the workflow. Substitute a domain you control before requesting any certificate.

Where validation and TLS termination happen

In the migration, an AWS Network Load Balancer forwarded TCP connections to Envoy. Envoy terminated TLS and then routed HTTP requests to application Services. On the Kubernetes side, a cert-manager Certificate requested DNS names through an ACME issuer. Once the certificate authority validated those names and issued the certificate, cert-manager stored the signed certificate and private key in a Kubernetes TLS Secret. The Gateway's HTTPS listener referenced that Secret. This arrangement gives cert-manager responsibility for issuance and renewal and gives Envoy responsibility for the certificate presented to a client. cert-manager Certificate resource · Gateway API TLS configuration.

ACME provides two ways to prove control in this setup. With HTTP-01, the certificate authority fetches a token-specific response from http://<hostname>/.well-known/acme-challenge/<token>, starting on port 80. This fits an individual hostname that already reaches a public HTTP listener. With DNS-01, the authority looks for a TXT record at an _acme-challenge name. This fits both individual names and wildcards, and it lets the hostname's application records keep serving the previous endpoint during issuance. A DNS provider API allows cert-manager to present and remove the temporary record automatically. Let's Encrypt challenge types.

HTTP-01 through Envoy Gateway

First, install the Gateway API resource definitions and enable Gateway API support in cert-manager. With a supported Helm chart, the relevant config value is config.gatewayAPI.enabled=true. If the definitions were installed after cert-manager started, restart its Deployment so the controller can discover them. Give default/eg-nlb an HTTP listener named http on port 80. Set that listener's allowedRoutes to admit routes from the namespace where the Certificate lives. This matters when the Gateway and the Certificate are maintained in different namespaces. cert-manager HTTP-01 Gateway API solver.

Then configure the solver's parent reference. The following example selects the HTTP listener on the migration Gateway. The solver Service uses ClusterIP because the public entry point is the Gateway. When issuance begins, cert-manager creates a temporary solver Pod, Service, and HTTPRoute in the Certificate's namespace. Envoy matches the challenge hostname and path on the public listener and sends the request to the solver Service. cert-manager HTTP-01 solver configuration.

# ClusterIssuer.spec.acme.solvers entry - http01: gatewayHTTPRoute: parentRefs: - name: eg-nlb namespace: default sectionName: http serviceType: ClusterIP 

Finally, verify that public DNS for the requested name leads to the entry point that serves the solver route. During a parallel cutover, a hostname can resolve perfectly and still point to the old load balancer. In that situation, a public challenge request goes to the old proxy, even if the new Gateway accepts the route and the solver Pod is healthy. Check the DNS answer, the listener's reachability on port 80, and the exact response body. Keep redirects and authentication rules in mind when examining what a public request actually receives. Let's Encrypt HTTP-01 validation · cert-manager ACME troubleshooting.

While the challenge is pending, use kubectl describe challenge -n <namespace> <name> to find its token and reported failure reason. Check the temporary route's parent status for the expected Gateway and listener, including whether the route was accepted. From outside the cluster, request the full challenge URL with the reported token and compare the body with the challenge's expected key authorization. If the request times out, start with the public listener and network path. If it returns the application's page or a 404, check which proxy answered and whether the solver route matched. The temporary resources are easiest to inspect while issuance is still pending. cert-manager ACME troubleshooting.

DNS-01 with Route 53

In the migration, a ClusterIssuer referenced AWS credentials stored in a Kubernetes Secret. A dedicated DNS-01 issuer handled the shared wildcard certificate. A second issuer used a DNS zone selector to choose the Route 53 solver for matching names, with an HTTP-01 solver available for eligible unmatched names. Solver selection happens for each identifier. Once cert-manager selects DNS-01, an unsuccessful DNS challenge stays on that validation path. The HTTP solver is a choice for an eligible name at selection time.

The following excerpt illustrates the Route 53 portion of the mixed issuer. For the Secret-based configuration, create the credential Secret in cert-manager's configured cluster resource namespace, which defaults to cert-manager in the standard installation. The dnsZones selector decides which names go to the solver. Route 53 still needs credentials with permission to manage the challenge TXT records in the publicly authoritative hosted zone. An explicit hostedZoneID can identify that zone and remove the need for hosted-zone lookup permission. If a subdomain has its own delegation, check which zone is authoritative for its specific challenge record. cert-manager Route 53 solver · cert-manager solver selection.

# ClusterIssuer.spec.acme.solvers entry - selector: dnsZones: - example.com dns01: route53: region: eu-west-2 accessKeyIDSecretRef: name: route53-credentials key: access-key-id secretAccessKeySecretRef: name: route53-credentials key: secret-access-key 

In this example, the wildcard identifiers *.example.com and *.eu.api.example.com produce challenge lookups under _acme-challenge.example.com and _acme-challenge.eu.api.example.com, respectively. During a pending challenge, query an authoritative nameserver directly and compare the published TXT value with the expected value shown on the Challenge. After validation, cert-manager cleans up the temporary record, so an empty answer after successful issuance is expected. Let's Encrypt DNS-01 validation · cert-manager ACME troubleshooting.

dig @"${AUTHORITATIVE_NS}" TXT _acme-challenge.example.com dig @"${EU_AUTHORITATIVE_NS}" TXT _acme-challenge.eu.api.example.com 

If the TXT record is absent, inspect the Challenge events for an access error and check the public delegation. A successful write to a private or incorrectly selected hosted zone can still leave the public answer empty. If authoritative servers return the expected value while cert-manager reports a pending DNS self-check, compare the response from the recursive resolvers cert-manager uses and look for caching or split-horizon DNS. Check the first failing resource in the Certificate, CertificateRequest, Order, and Challenge chain before opening another issuance attempt. cert-manager DNS-01 self-check · cert-manager ACME troubleshooting.

Verify the certificate before moving traffic

We requested two Subject Alternative Names on the shared certificate. The first, *.example.com, covers dashboard.example.com. The second, *.eu.api.example.com, covers adapter.eu.api.example.com. A certificate wildcard matches one hostname label, so the deeper name requires its own wildcard. If clients also use the zone apex, request that exact name as an additional SAN. DNS-01 let us prepare both wildcards while the application records still pointed at the old entry point. RFC 9525 service identity and wildcard matching.

This illustrative resource uses the dedicated DNS-01 issuer. The Secret and Gateway share a namespace in the example, so the listener can reference the Secret by name.

apiVersion: cert-manager.io/v1 kind: Certificate metadata: name: shared-gateway-wildcard namespace: default spec: secretName: shared-gateway-tls issuerRef: kind: ClusterIssuer name: route53-wildcard dnsNames: - "*.example.com" - "*.eu.api.example.com" 

On each HTTPS listener that serves these names, configure TLS termination and set certificateRefs to the Secret produced by the Certificate. Wait for Ready=True on the Certificate and check the Gateway's listener status for unresolved references. The client-side test comes next. Set NEW_NLB_HOSTNAME to the new load balancer's assigned hostname and make a request using the real application hostname in the URL. curl makes the TCP connection to the new NLB while preserving the application's hostname for Server Name Indication (SNI), certificate verification, and HTTP routing. Gateway API TLS configuration · curl --connect-to reference.

kubectl -n default wait --for=condition=Ready \ certificate/shared-gateway-wildcard --timeout=5m curl --fail-with-body --show-error \ --connect-to "dashboard.example.com:443:${NEW_NLB_HOSTNAME}:443" \ https://dashboard.example.com/ 

Repeat with a representative hostname for each wildcard and choose a path with a known response. A certificate mismatch calls for checking the presented names, the selected listener, and its Secret reference. An unexpected HTTP status after a successful handshake calls for checking the attached route and upstream behavior. After cutover, repeat the request through ordinary public DNS so it follows the same path as clients.

Plan the verification around the migration's rollback path. Before updating application DNS, capture the response from the old endpoint and compare it with the forced connection to the new NLB. Use a read-only route whose behavior you can recognize, such as a health endpoint or a known login page. Check for the expected response as well as a valid certificate. A distinctive, expected application response provides evidence that the new path handled the hostname through TLS termination and reached the intended route. If the HTTPS request reaches the wrong route, fixing its listener attachment before the DNS change keeps the old endpoint available to customers throughout the repair.

A shared certificate also needs a clear owner. Record the issuer, owning namespace, Secret name, listener references, and supported hostnames next to the Gateway configuration. When adding a new hostname, review both the listener's hostname scope and the certificate's SANs. A route may match a proposed hostname even when the certificate fails client verification for that name. This is especially easy to miss when a new service introduces another level of subdomain.

Keep renewal working after cutover

For future deployments on EKS, a workload IAM role can supply short-lived AWS credentials to cert-manager. Scope Route 53 permissions to the relevant public hosted zone and challenge record changes. Limit who can read the TLS Secret, and decide who can request certificates from the shared wildcard issuer. A wildcard private key can serve every matching hostname, so its access and ownership deserve review alongside the list of SANs. Rehearse new solver configurations against the CA's staging environment before requesting a production certificate. cert-manager Route 53 credentials · Let's Encrypt staging environment.

Track both cert-manager's renewal state and certificate expiration at the public listener. A change to DNS delegation, IAM permissions, listener policy, or public port 80 can break renewal long after initial issuance. Before retiring an old ingress, verify that the replacement solvers can complete validation with the intended routing and DNS configuration. Test a representative client connection after renewal as well. Issuance, Secret updates, and the certificate Envoy serves are independently observable, and checking all three shows where to investigate if a future renewal appears to stall. cert-manager Certificate renewal.