apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: ip-mzisel-nl-ingress annotations: traefik.ingress.kubernetes.io/middlewares: default-strip-ip-prefix@kubernetescrd spec: rules: - http: paths: - path: /ip pathType: Prefix backend: service: name: ip-mziesel-nl port: name: web --- apiVersion: traefik.io/v1alpha1 kind: Middleware metadata: name: strip-ip-prefix spec: stripPrefix: prefixes: - "/ip" forceSlash: false