I'm currently using traefik 2.4.9 with Kubernetes via helm, which has the following static configuration:
ports: web: redirectTo: websecure websecure: tls: enabled: true
This globally redirects HTTP to HTTPs.
Now I need to make an exception for one service under a specific domain (unsafe.com), which is not possible via static configuration. So I'm trying to migrate this to a dynamic configuration (e.g. IngressRoute) and I already have a suitable middleware to make this work.
However, when using IngressRoute, I would need to specify a concrete (Traefik)Service, which I don't want.
Goal would be something like this:
apiVersion: traefik.containo.us/v1alpha1 kind: IngressRoute metadata: name: http-to-https-route namespace: default spec: entryPoints: - web routes: - kind: Rule match: !Host(`unsafe.com`) middlewares: - name: http-to-https-middleware #services: let traefik figure out what to do
EDIT: seems like it's possible to use
noop@internal as pointed out here Noop@internal service