Errors - Using traefik ip whitelist middleware in annotation

Hi , I am trying to use the whitelist annotation option in rancher key value pair like so in the deployment

traefik.http.middlewares.testIPwhitelist.ipwhitelist.sourcerange = 127.0.0.1/24
But i get the error:

Validation failed in API: Deployment.apps “nexus” is invalid: spec.template.annotations: Invalid value: “traefik.http.middlewares.testIPwhitelist.ipwhitelist.sourcerange”: name part must be no more than 63 characters.

How would one create a middleware annotation like this using Rancher? Many thanks.

Did you ever figure this out? I’m in the same boat. Deployed Rancher via helm only to find out that the admin UI is automatically exposed via Traefik. I have IPWhitelists setup in other Traefik deployments which works perfect, just can’t seem to figure this out in Rancher.