-
Notifications
You must be signed in to change notification settings - Fork 303
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
Cannot Disable HTTP when using managed-certificates. Results in infinite Creating ingress and 'no frontend configuration' #738
Comments
@jakebolam Thanks for filing the issue, this looks like a bug. The code [1] which decides whether to setup the HTTPS resources given the value of "allow-http" does not seem to take into account whether the user has configured SSL via Managed Certificates. The fix should be straightforward and will be available in our next patch release. [1] https://github.com/kubernetes/ingress-gce/blob/master/pkg/loadbalancers/l7.go#L138 /kind bug |
@rramkumar1 no worries thanks for the fast response, the ingress has been performant and great for us, keep it up |
@jakebolam Actually now that the more I ponder this, the more I think this is WAI. Here the is reasoning: Adding the "networking.gke.io/managed-certificates" annotation to your Ingress does not attach a cert to your Ingress. All its doing is displaying intent for a cert to be added. It's possible that the controller which reconciles ManagedCertificate resources fails to create the actual GCP cert, in which case no actual cert will be attached to your Ingress (via the "pre-shared-cert" annotation). Therefore, we (as in ingress-gce) can't setup HTTPS resources until we know that the cert you intended to be attached is actually attached. Otherwise, where will we get the cert from? So, my recommendation would be to first verify that your Ingress is serving HTTPS and then set allow-http to "false". Does this makes sense? I'm going to go ahead and close this out but feel free to reopen if you have more questions. /close |
@rramkumar1: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Thanks for looking into this @rramkumar1. We've moved back to using pre-shared-certs for now. Hopefully in the future Managed Certificates and the Ingress will be able to play nicer together. |
@rramkumar1 GKE Manged Certs are working again and was unable to get HTTP to shut off. Created a new issue for this: #764 |
Cannot Disable HTTP when using managed-certificates
When specifying the flag
kubernetes.io/ingress.allow-http: "false"
the ingress is never created, remains stuck in Creating ingress. Removing this annotation successfully completes the creation.Versions
Kubernetes master/node-kube version:
1.12.6-gke.10
Additional Details:
The load balancer has the error
This load balancer has no frontend configured
Hitting the HTTPS gateway results in
unexpectedly closed the connection.
Hitting the HTTP gateway results in a google engine error page.
Configuration
The text was updated successfully, but these errors were encountered: