-
Notifications
You must be signed in to change notification settings - Fork 8.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
Unable to replicate nginx.conf in a docker compose environment to ingress resource in a kubernetes (GKE) environment #12022
Comments
This issue is currently awaiting triage. If Ingress contributors determines this is a relevant issue, they will accept it by applying the The 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-sigs/prow repository. |
You have not explained more details so does the below suggestion work for you
|
When I access the |
There seem similarities between you sendng request to AUTH outside the cluster like here https://kubernetes.github.io/ingress-nginx/examples/customization/external-auth-headers/ |
Hello @LaraibSaleem, I assume Ingress NGINX by default connects to backends without SSL/TLS. To enable HTTPS on your backend, you need to set the following annotation: TIL: There is Regards |
Hey @Gacko Regarding the logs on ingress-nginx pod, |
This is stale, but we won't close it automatically, just bare in mind the maintainers may be busy with other tasks and will reach your issue ASAP. If you have any question or request to prioritize this, please reach |
I have following nginx.conf file which is working perfectly fine in a docker compose setup, that is, /v1/users requests go to https://DNS.com
I'm deploying this app on GKE and using nginx as ingress controller
Following is my ingress resource with all its annotations
Following is the external service
The issue I'm currently facing with all these configurations is
400 Bad Request The plain HTTP request was sent to HTTPS port cloudflare
What's expected:
On loading the ingress host/domain, it should redirect to https://DNS.com
Note:
1- My ingress cotroller external IP and dns.com are registered in the same domain on cloudflare so I'm using same tls certs in both, nginx.conf and ingress secrets.
2- web and FE are deployed on same cluster
3- dns.com is itself a private IKS (IBMCloud Kubernetes Environment)
The text was updated successfully, but these errors were encountered: