i am using Traefik version 2.3.1 as my ingress controller for my k8s cluster, for test reasons i use the ip address of the host where Traefik is deployed + a path to access a specific tool (ex: http://@ip/tool1, http://@ip/tool2)
i deployed the necessary k8s resources for every tool, now when i try to access my website tool1 for example using http://@ip/tool1 the site is not fully rendered (the website works fine if i use root path "/" directly)
my Traefik ingressRoute and middleware
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: tool1
spec:
entryPoints:
- web
routes:
- match: Host(`@ip`) && PathPrefix(`/tool1`)
kind: Rule
services:
- name: tool1-svc
port: tool1-port
middlewares:
- name: tool1-stripprefix
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: tool1-stripprefix
spec:
stripPrefix:
prefixes:
- /tool1
Traefik dashboard indicates that all is okay (router, midleware and service)
i used this helm chart https://github.com/traefik/traefik-helm-chart to deploy Traefik with no modification in the args of the Traefik container
as an example, i use awx and nexus behind Traefik as my tools
result in the browser when i try to access awx (url --> http://@ip/awx)
thanks in advance