Help Needed Defining Traefik Routing Rule in Kubernetes Ingress Annotation (Traefik 1.7.34)


I'm using Traefik version 1.7.34 in my Kubernetes cluster and I'm struggling to define a routing rule using annotations within an Ingress resource.

I need to specify the following routing rule:

Rule: (HeadersRegexp(`Authorization`, `.*`) || Method(`OPTIONS`))

Could someone provide guidance or an example of how to properly format this rule with the annotation field in my Ingress resource YAML?


Traefik v1.7 was released in 2018 and official support ended 2021. You should just not use such an old version if you care about your site and network security.