-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
TLS Ingress not work on nginx #452
Comments
Seems the same issule kubernetes-retired/contrib#1592 |
@lucklove this doc look old. Please remove the created replicationcontroller and apply this one https://github.com/kubernetes/ingress/blob/master/examples/deployment/nginx/nginx-ingress-controller.yaml Let me know if this solve your isssue so I'll update this doc. |
@gianrubio Thanks for your reply, I just have workaround by |
@lucklove Have you created the secret containing the Keypair, and with the CN matching your hostname? (foo.bar.com) |
@rikatz I create it by openssl, but I don't know if ingress-controller see it since there is no log about it.(I recommend add log for this, if ingress-controller can't find secret it should log an error) |
@lucklove Actually it does log :) Can you please give me the created ingress (with kubectl get ingress ingress-name -o yaml) and its respective secret, so I can take a look? Thanks |
I'm using nginx ingress controller, and I fellow this example.
After
kubectl create -f https://raw.githubusercontent.com/kubernetes/ingress/master/examples/multi-tls/multi-tls.yaml
I execute
kubectl exec -it nginx-ingress-controller-2844275453-frmww -n kube-system -- cat /etc/nginx/nginx.conf | grep "foo.bar.com" -B 7 -A 35
and it shows
So it's not surprise that
curl http://hostip -H "Host:foo.bar.com"
works whilecurl https://hostip -H "Host:foo.bar.com" -k
not: The nginx-ingress-controller neither listen on 443 for foo.bar.com at all, nor use any pem file.What should I do to get more clear what's wrong?
The text was updated successfully, but these errors were encountered: