# Moving from ingress-nginx to Traefik: the smallest step

> Traefik now reads Ingresses written for ingress-nginx, annotations included. How to run both side by side, the differences that bite in production, and why it buys time rather than replacing the Gateway API move.

- Canonical: https://www.alpacamango.com/docs/traefik-for-ingress-nginx-users
- Author: Kevin
- Published: 2026-11-26 · Updated: 2026-11-22
- Topics: Kubernetes

**If you have more Ingresses than time, move them to Traefik first and to the Gateway API second. Traefik has a provider, no longer experimental, that reads Ingress objects written for ingress-nginx, annotations and all, so the same YAML gets a maintained proxy without being rewritten. That puts you back on a proxy that still gets security fixes, without a rewrite. It does not modernise anything: your routing still speaks ingress-nginx's dialect, now through Traefik's translation of it, and the move to HTTPRoutes is still ahead of you.**

*Based on the article from Gazeek, our sister site for hands-on CKA and CKAD labs: *[*ingress-nginx is retired: your options*](https://gazeek.com/blog/ingress-nginx-retired-your-options?utm_source=alpacamango)*. It covers all three ways out, with the commands to inventory your annotations and convert them.*

## What changes, and what does not

Your Ingress manifests stay as they are, `ingressClassName: nginx` included. Traefik is installed beside ingress-nginx with one provider switched on, and from then on both controllers serve the same objects, each from its own load balancer address. Nothing moves until you point DNS at Traefik.

```bash
helm install traefik traefik/traefik -n traefik --create-namespace \
  --set providers.kubernetesIngressNGINX.enabled=true
```

What does not come across is everything outside the Ingress objects. ingress-nginx's global ConfigMap has to be mapped by hand into Traefik's options, and its values change shape on the way: `1m` and `30s` become plain bytes and seconds. Some keys have no counterpart at all, the snippet keys among them; Traefik's guide says to translate what they were for rather than the directive.

## The differences you will notice in production

Traefik's reference lists every annotation it supports and every one it ignores. The ones worth reading twice are those that change behaviour rather than fail loudly:

- **Rate limiting answers 429, not 503.** If an alert or a client retry policy keys on ingress-nginx's 503, it goes quiet on the day you switch.
- **`load-balance`**** is ignored without a word.** Traefik does round robin only; EWMA and IP hashing are gone.
- **Trailing slashes are kept.** ingress-nginx drops them unless told otherwise, so a backend that relied on that sees new paths.
- **Request buffering is off by default**, where ingress-nginx had it on. Uploads reach slow backends differently.
- **ModSecurity is not there.** If `enable-modsecurity` was your WAF, you need another one before you cut over, not after.
- **Snippets work only partly.** `configuration-snippet` and `server-snippet` accept a listed subset of NGINX directives. Treat each one as a small redesign.

## Two controllers on one Ingress

Running both side by side is what makes the move safe, and it has two traps. Each controller writes its own address into the Ingress status and overwrites the other's, over and over. Traffic is fine, but ExternalDNS can flap and GitOps tools report drift. Turn off Traefik's `publishService` while both run, and turn it on again just before ingress-nginx goes.

The second trap is at the end. Uninstalling ingress-nginx's Helm release deletes the `nginx` IngressClass that every one of your Ingresses names. Tell Helm to keep it first, and do it through Helm: Traefik's guide warns that annotating the object with kubectl does not work.

```bash
helm upgrade ingress-nginx ingress-nginx/ingress-nginx -n ingress-nginx --reuse-values \
  --set-json 'controller.ingressClassResource.annotations={"helm.sh/resource-policy":"keep"}'
```

Then move traffic as you would release software: add Traefik's address to DNS, watch, remove ingress-nginx's address, and leave the old controller running for a day or two, because some resolvers ignore TTLs.

## Why it buys time rather than changing direction

Every ingress-nginx annotation you keep is now a promise Traefik makes to imitate a controller that no longer exists. Redirects and canary weights are on the supported list and CORS is partly supported, but it is a compatibility layer, and the list of exceptions above is its edge. The useful part is that Traefik also implements the Gateway API. Once it is your controller, the next migration needs no new proxy and no second cutover: write new routes as HTTPRoutes, convert old Ingresses one at a time with [ingress2gateway](/docs/ingress2gateway-explained), and the annotations retire as the Ingresses do.

So choose Traefik when the deadline is security, not design: hundreds of Ingresses, few snippets, and no time to review a conversion. If you have a dozen Ingresses, go straight to [the Gateway API](/docs/gateway-api-for-ingress-users). [The retirement options](/docs/ingress-nginx-retirement-options) compares all three paths, and the CKA's [Ingress and network policy module](https://gazeek.com/courses/cka?utm_source=alpacamango#module-07-ingress-and-network-policy) on Gazeek has a lab that routes an Ingress through Traefik, then a guided Gateway API lab.

## The diagram

Both controllers reading the same Ingress, each with its own address, while DNS moves from one to the other; the IngressClass kept, ingress-nginx removed last. Drawn in archhy: [open it in archhy](https://archhy.com/d/1DcBNvihfmoY?utm_source=alpacamango) and press Make a copy to adapt it.

## Go deeper

Gazeek's [full article](https://gazeek.com/blog/ingress-nginx-retired-your-options?utm_source=alpacamango) has the commands to list your Ingresses and count their annotations, the ingress2gateway conversion, and links to the Kubernetes announcements and Traefik's migration guide.
