We’ve just embarked on our ingress migration from NGINX. Traefik was chosen due to the level of support for the NGINX annotations.
I’m having trouble getting my ingress to work, and wondering if anyone has some tips for me.
I understand that the way it works, it’ll connect directly to the backend pod IP so SAN validation is against the pod IP. I’ve tried adding the NGINX annotation proxy-ssl-server-name to mitigate it, but curl still fails with HTTP code 500. The Traefik logs show:
500 Internal Server Error error="tls: failed to verify certificate: x509: certificate is valid for 100.127.212.75, not 10.233.83.231"
The cert shows:
X509v3 Subject Alternative Name:
DNS:rmgr.psa-restricted.svc.cluster.local, DNS:nspos-prometheus-endpoint, IP Address:100.127.212.75
Backend pod IP is: 10.233.83.231
Annotation is: nginx.ingress.kubernetes.io/proxy-ssl-server-name: rmgr.psa-restricted.svc.cluster.local
Setting “ssl-verify: off”’ doesn’t get past this either.
Is there something else I’m missing? Any pointers would be very much appreciated.