Open juris opened 1 month 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.
I am getting 404 without any snippets ;
% k describe po test0-846c7c69c6-r4426| grep -i image:
Image: nginx:alpine
[~]
% k describe svc test0
Name: test0
Namespace: default
Labels: app=test0
Annotations: <none>
Selector: app=test0
Type: ClusterIP
IP Family Policy: SingleStack
IP Families: IPv4
IP: 10.101.94.63
IPs: 10.101.94.63
Port: <unset> 80/TCP
TargetPort: 80/TCP
Endpoints: 10.244.0.50:80
Session Affinity: None
Events: <none>
[~]
%
% k describe ing test0
Name: test0
Labels: <none>
Namespace: default
Address: 192.168.49.2
Ingress Class: nginx
Default backend: <default>
Rules:
Host Path Backends
---- ---- --------
test0.mydomain.com
/ test0:80 (10.244.0.50:80)
Annotations: <none>
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Sync 2m19s (x2 over 3m15s) nginx-ingress-controller Scheduled for sync
%
% curl -i --resolve test0.mydomain.com:80:`minikube ip` -XPOST test0.mydomain.com/health
HTTP/1.1 404 Not Found
Date: Wed, 07 Aug 2024 13:07:48 GMT
Content-Type: text/html
Content-Length: 153
Connection: keep-alive
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx/1.27.0</center>
</body>
</html>
[~]
%
/remove-kind bug /kind support
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.
What happened: Using
limit_except GET { deny all; }
together withlocation = / { return 403; }
results in503
, instead of403
.This one is OK
This one is OK
This one should have returned 403 instead of 503
What you expected to happen: I want to block all requests to "/" and allow only
GET
requests for every other route. Ingress should return403
, but it returns 503.NGINX Ingress controller version (exec into the pod and run nginx-ingress-controller --version.):
Kubernetes version (use
kubectl version
):How to reproduce this issue: Use the following annotations: