Hello everyone,
I'm using Traefik as a ingress for K8S and when I try to redirect with annotations http to https for some reason another website that is being hosted by the same K8S...
My ingress yaml:
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: prod
name: client-ead
annotations:
kubernetes.io/ingress.class: traefik
kubernetes.io/preserve-host: "true"
traefik.ingress.kubernetes.io/affinity: "true"
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
traefik.ingress.kubernetes.io/router.tls: "true"
traefik.ingress.kubernetes.io/redirect-entry-point: https
spec:
tls:
- hosts:
- client.a.com
secretName: tlssecret
rules:
- client.a.com
http:
paths:
- backend:
service:
name: client-ead
port:
number: 80
path: /
pathType: Prefix
The fun part is that I have another client hosted and when the redirect is applyed, the client.a.com redirects to client.b.com BUT if I type address with https it goes fine (client.a.com).
Note that I have the 2 tls secrets in my K8S.
Am I doing something wrong?
Thx in advance