Skip to content
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

Numeric value to nginx.ingress.kubernetes.io/limit-rps does not work #1783

Closed
jpalomaki opened this issue Dec 1, 2017 · 3 comments · Fixed by #1792
Closed

Numeric value to nginx.ingress.kubernetes.io/limit-rps does not work #1783

jpalomaki opened this issue Dec 1, 2017 · 3 comments · Fixed by #1792

Comments

@jpalomaki
Copy link

Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

NGINX Ingress controller version: 0.9.0-beta.19

Kubernetes version (use kubectl version): 1.8.4-gke.0

Environment:

  • Cloud provider or hardware configuration: GKE

What happened:
Rate limiting is not enforced when using numeric value to ingress annotation nginx.ingress.kubernetes.io/limit-rps

What you expected to happen:
Rate limiting ought to work with numeric values for said annotation (per documentation).

How to reproduce it (as minimally and precisely as possible):
Apply the said annotation to an ingress:
nginx.ingress.kubernetes.io/limit-rps: 5
Test using e.g. siege: siege -c 20 https://myexample.com

@pieterlange
Copy link
Contributor

Can you dump your generated nginx config? eg kubectl exec <ingress pod> -- cat /etc/nginx/nginx.conf

@aledbf
Copy link
Member

aledbf commented Dec 1, 2017

@jpalomaki all the values are strings. I will add a comment about this. If the value is a number it must be quoted

@jpalomaki
Copy link
Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants