How to handle regrex in pathprefix for traefik 2

5/6/2020
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
  name: middleware-stripprefix-test
  namespace: test
spec:
  stripPrefix:
    prefixes:
      -  user/api-resources
      -  user/clients/{id}/secrets

So in {id}, I have to pass combination of numbers, alphabet, and "_"(underscore), So How can I handle it? user/clients/*/secrets is correct or is there any another way?

-- sumit salunke
kubernetes
kubernetes-ingress
traefik
traefik-ingress

0 Answers