Open saffih opened 12 months ago
This issue is currently awaiting triage.
If Ingress contributors determines this is a relevant issue, they will accept it by applying the triage/accepted
label and provide further guidance.
The triage/accepted
label can be added by org members by writing /triage accepted
in a comment.
Looks like same as https://github.com/kubernetes/ingress-nginx/issues/10618
@saffih is it possible for you to write a test step-by-step instruction that a reader can copy/paste from and reproduce on a minikube/kind cluster
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 #ingress-nginx-dev
on Kubernetes Slack.
Using Pattern to catch Exact /: │app.kubernetes.io/name: rke2-ingress-nginx │app.kubernetes.io/version: 1.6.4 │helm.sh/chart: rke2-ingress-nginx-4.5.201 Having an ingress with: │ rules: │ - http: │ paths: │ - backend: │ service: │ name: powerflex-status-ui │ port: │ number: 80 │ path: / │ pathType: Exact When calling: curl -k -H 'Cache-Control: no-cache, no-store' -I https://100.68.80.54/ HTTP/2 404 It should have returned 200 - it fails to match a single / It worked with an older version. We have a workaround, adding $ to the expression.
WORKAROUND: That one seems identical but it works - getting http 200 by using: Exact /$ │ rules: │ - http: │ paths: │ - backend: │ service: │ name: powerflex-status-ui │ port: │ number: 80 │ path: /$ │ pathType: Exact
Expected 200 :
The parsing with Exact is not good - a minor bug and we have a workaround by changing the expression: /$ It should behave the same with \ vs. \$
NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.):
NGINX Ingress controller Release: nginx-1.6.4-hardened4 Build: git-90e1717ce Repository: https://github.com/rancher/ingress-nginx.git nginx version: nginx/1.21.4
Kubernetes version (use
kubectl version
): 1.26.4+rke2r1Environment:
Install tools:
Please mention how/where was the cluster created like kubeadm/kops/minikube/kind etc.
Basic cluster related info:
kubectl version
kubectl get nodes -o wide
helm ls -A | grep -i ingress
/label rke2