-
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
Ingress rule with non-wildcard path does not work #8518
Comments
@shashankram: 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/test-infra repository. |
/remove-kind bug |
/kind bug |
The service is a LoadBalancer service. Check the PR description to view the specific details. If there is additional information you need, kindly ask for specific information that can help resolve the issue. |
/triage needs-information Assign the label bug after there is data available in the issue that shows the bug. This problem looks like a configuration related issue so triage needs-information It will help everyone, if you post the information that is relevant to the problem. For example ;
|
All of this has been shared. Please read through the PR description to find the requested info. I have shared a lot of configs, nginx conf files, and relevant logs. There should be enough info in the bug to determine if there is a misconfiguration. The behavior I am seeing is that there are no logs corresponding to the request in Nginx ingress controller when using a non-root path |
/cc @ingress-nginx-maintainers |
what happens if you put a slash after "get" ? |
faced the same issue. We need a /* and then you can add any additional paths |
That doesn't work either. |
@ashwinpagarkhed Are you implying that a root path is necessary for additional sub paths to work? Could you share what the configuration should look like? Thanks |
@ashwinpagarkhed were you also using AKS or was this on another distribution? |
I left the testbed up overnight and it started working without any configuration changes. It seems to me there is some issue with Nginx on AKS, but can't seem to find relevant logs when the requests fail as the request hangs with no logs in Nginx. |
Addresses an issue where an ingress without a root path does not work for some non-kind distributions like AKS: kubernetes/ingress-nginx#8518. Adding a wildcard path in addition to the status/200 path resolves the issue. Signed-off-by: nshankar13 <nshankar@microsoft.com>
Addresses an issue where an ingress without a root path does not work for some non-kind distributions like AKS: kubernetes/ingress-nginx#8518. Adding a wildcard path in addition to the status/200 path resolves the issue. Signed-off-by: nshankar13 <nshankar@microsoft.com>
Addresses an issue where an ingress without a root path does not work for some non-kind distributions like AKS: kubernetes/ingress-nginx#8518. Adding a wildcard path in addition to the status/200 path resolves the issue. Signed-off-by: nshankar13 <nshankar@microsoft.com>
Hi. We are facing the same issue after installing an AKS cluster with newer version of Kubernetes: AKS Kubernetes version: 1.22.6 (latest possible) This still works in the old cluster, (1.21.9, some lines removed): apiVersion: extensions/v1beta1
Not working in the new cluster (1.22.6):
Experimented with just path: / without wildcards, and this matches. All other combinations not. (.* (.*) etc) |
@kanonkanin, this api version |
We use networking.k8s.io/v1 in the new version. |
Kubectl describe outputs for ingress object, ingress controller pod, logs
of controllerpod
Thanks,
; Long
…On Thu, 28 Apr, 2022, 9:51 PM Shashank Ram, ***@***.***> wrote:
/remove-kind bug Please search other issues and read docs. Then post the
info requested in the issue-template. Its not even clear if your service
type is NodePort or LoadBalancer
"Please search other issues and read docs" is not an acceptable answer. I
have looked through various similar bugs and many have been closed due to
inactivity. Please take the time to point out specifically which bugs are
similar and which docs might help resolve the problem.
The service is a LoadBalancer service. Check the PR description to view
the specific details. If there is additional information you need, kindly
ask for specific information that can help resolve the issue.
—
Reply to this email directly, view it on GitHub
<#8518 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGZVWQBBQPAFRF665LWKYDVHK3JBANCNFSM5UQRCMAQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I bet Azure/AKS#3646 is the problem here; it has to do with the AKS loadbalancer |
/remove-kind bug There is no problem with the constroller as described in this issue's original report. So I am closing this issue. thanks /close |
@longwuyuan: Those labels are not set on the 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. |
@longwuyuan: 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. |
NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.):
Kubernetes version (use
kubectl version
):Environment:
AKS
Cloud provider or hardware configuration: AKS
How was the ingress-nginx-controller installed:
helm ls -A | grep -i ingress
helm -n <ingresscontrollernamepspace> get values <helmreleasename>
kubectl describe ingressclasses
What happened:
I am seeing an extremely odd behavior where paths other than the root
/
don't work. My sample apphttpbin
serves requests on multiple paths such as/
,/get
,/status/200
etc. However, any path other than the root path/
don't seem to work, and the requests simply hang with no logs in the nginx ingress controller pod.Working: path=/
Ingress:
Request:
Nginx log for request:
Nginx conf:
nginx-widcard.txt
Failing: path=/get
Ingress:
Request hangs:
No logs in Nginx for this request.
Logs corresponding to Nginx config update when switching from path
/
to/get
:nginx-path-update.txt
Nginx conf:
nginx-specific.txt
What you expected to happen:
Request /get should work with path=/get
How to reproduce it:
The text was updated successfully, but these errors were encountered: