# Assign middleware to port in traefik 3 kubernetes (helm chart)

**URL:** <https://community.traefik.io/t/assign-middleware-to-port-in-traefik-3-kubernetes-helm-chart/29608>\
**Category:** Traefik v3 (latest)\
**Tags:** kubernetes-crd\
**Created:** [January 22, 2026, 8:08pm UTC](https://community.traefik.io/t/assign-middleware-to-port-in-traefik-3-kubernetes-helm-chart/29608 "2026-01-22T20:08:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EugenMayer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/eugenmayer/32/694_2.png) [@EugenMayer](https://community.traefik.io/u/EugenMayer)\
**Post date:** [January 22, 2026, 8:08pm UTC](https://community.traefik.io/t/assign-middleware-to-port-in-traefik-3-kubernetes-helm-chart/29608/1 "2026-01-22T20:08:28Z")

</div>

Env:

- k8s
- traefik via helm chart 38.0.2
- traefik 3.6.6

I deployed a middleware which does show up in the dashboard and does work on a router - but i would like it to be applied to all routes.

```auto
kubectl get -n traefik-external Middleware trusted-proxy-ips-default
NAME AGE
trusted-proxy-ips-default 18m

```

Now i added this middleware to the traefik helm chart

```yaml
ports:
  websecure:   
    http:
      middlewares:
        - traefik-external-trusted-proxy-ips-default@kubernetescrd

```

Thus i’am accounting for the namespace `traefik-external` (the same one the traefik is deployed), the acual middleware name `trusted-proxy-ips-default` and the provider `@kubernetescrd`

When i check in the dashboard, i see that the name matches by accessing it, the url is `middlewares/traefik-external-trusted-proxy-ips-default@kubernetescrd`

As explained, the middleware does show up in the actual dashbaord and i can use it on the route - but it does not get to be applied on the routes by default.

I do not see any error messages at all in the traefik port, but also, there is not way to check if the middleware is on the port right (i can check it for routes but nor ports/endpoints?)

Any help would be required ( checked [Traefik EntryPoints Documentation - Traefik](https://doc.traefik.io/traefik/reference/install-configuration/entrypoints/#httpmiddlewares) )

---

<div class="post-metadata">

**Author:** ![EugenMayer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/eugenmayer/32/694_2.png) [@EugenMayer](https://community.traefik.io/u/EugenMayer)\
**Post date:** [January 26, 2026, 5:53pm UTC](https://community.traefik.io/t/assign-middleware-to-port-in-traefik-3-kubernetes-helm-chart/29608/2 "2026-01-26T17:53:18Z")

</div>

Anything else i could provider / debug / share to make giving an answer any easier? Thanks in advance

---

<div class="post-metadata">

**Author:** ![urbaman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/urbaman/32/5598_2.png) [@urbaman](https://community.traefik.io/u/urbaman)\
**Post date:** [February 4, 2026, 3:12pm UTC](https://community.traefik.io/t/assign-middleware-to-port-in-traefik-3-kubernetes-helm-chart/29608/3 "2026-02-04T15:12:55Z")

</div>

Hi, having the very same problem.

Any insight on this?

---

<div class="post-metadata">

**Author:** ![urbaman](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/urbaman/32/5598_2.png) [@urbaman](https://community.traefik.io/u/urbaman)\
**Post date:** [February 4, 2026, 3:24pm UTC](https://community.traefik.io/t/assign-middleware-to-port-in-traefik-3-kubernetes-helm-chart/29608/4 "2026-02-04T15:24:43Z")

</div>

Hi @EugenMayer

Found out my problem: the middleware was misconfigured (referencing a non-present plugin).

Try to check the middleware for misconfigurations
