-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kubernetes-crd with tls doesn't work #5906
Comments
Hi @Roydon , the keyword Please not that the standard "Ingress" objects have the same behavior: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.16/#ingresstls-v1beta1-networking-k8s-io . It means that the field is not part of the API objects: this is why Traefik cannot get the secret: the Kubernetes security models forbids ingress to get secrets from other namespaces (you have the same limitation with other ingresses as Nginx: kubernetes/ingress-nginx#2170 ). As Traefik cannot find any certificates because the secret does not exist, then it serves the default cert to ensure the connexion is still in HTTPS. From there you have the following solutions:
|
@dduportal Does traefik checks if Domain in Host( |
@Roydon yes it does. If it is not what you see, then you have a misconfiguration and providing more elements (I'm thinking about the debug logs of Traefik) could help to find the misconfiguration element :) May I ask you to switch to the community forum at https://community.containo.us/: you would benefit from the community expertise for a faster help, and it would help us to manage the issue triage here, as we use the issues for bugs and feature requests. Of course, if the topic you'll open in the community forum raises a reproductible bug, then we'll re-open the issue here with more context. Thanks a lot! |
Do you want to request a feature or report a bug?
Bug
What did you do?
Want to provide SSL certificate through secrets for specific hosts.
What did you expect to see?
Traefik to use provided SSL certificate for handshake.
What did you see instead?
Traefik is using
TRAEFIK DEFAULT CERT
not the provided one.Output of
traefik version
: (What version of Traefik are you using?)What is your environment & configuration (arguments, toml, provider, platform, ...)?
Traefik is running in Kubernetes (EKS) as a Daemon Sets.
If applicable, please paste the log output in DEBUG level (
--log.level=DEBUG
switch)Certificate provided as Secret
IngressRoute for host
util.domain.net
as per docThen I tried
openssl s_client -showcerts -servername util.domain.net -connect util.domain.net:443
but getting following message withTRAEFIK DEFAULT CERT
I was expecting Traefik to return the certificate I have configured via secret (
star-domain-net
)The text was updated successfully, but these errors were encountered: