Hi Everyone,
I'm using Minikube, Kubernetes version is v1.20.2
. I've installed Traefik as an Ingress Controller following this guide: Kubernetes - Traefik
Traefik has been installed as a Deployment.
I've created ad Ingress like this:
---
# Source: nginx-envoy/templates/ingress.yaml
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: traefik-redirect-test
namespace: nginx
annotations:
traefik.ingress.kubernetes.io/redirect-permanent: "true"
traefik.ingress.kubernetes.io/redirect-regex: ^http://traefik-redirect-test.minikube/(.*)
traefik.ingress.kubernetes.io/redirect-replacement: http://nginx.minikube/$1
spec:
rules:
- host: "nginx.minikube"
http:
paths:
- path: /
backend:
serviceName: nginx-envoy
servicePort: 80
- host: "traefik-redirect-test.minikube"
http:
paths:
- path: /
backend:
serviceName: nginx-envoy
servicePort: 80
And I can actually see this reflected in Traefik dashboard.
However the redirection does not happen, on Google Chrome Tools i can see this:
There is a first redirection from http://traefik-redirect-test/html to http://traefik-redirect-test/html/, then the page is displayed.
Is it me that i'm doing something wrong?
Thanks!