Set global HSTS in Kubernetes

Hi! Having some trouble with TLS. I've been trying to figure out how to put a global HSTS on an entrypoint or similar. I'm fairly new to Traefik and Kubernetes. Still, I have found a couple things but need some help translating it to yaml or so.

I found this: Global http to https redirect in v2
although that doesn't seem quite right.

It seems to also be possible to use the following:
https://docs.traefik.io/migration/v1-to-v2/#http-to-https-redirection-is-now-configured-on-routers
https://calvin.me/hsts-with-traefik/

Either way, I'm just looking for a way to apply something like this over all the routers.