Skip to content

Implementing Rate Limit based on Nginx policy How to implement rate limiting in a virtual server #6078

Closed Answered by j1m-ryan
datavisorrunziyang asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @datavisorrunziyang , this feature was recently implemented. You can use the scale paramater on the rateLimit policy from version 3.6.0. You can see the docs on this here

Eg like this

apiVersion: k8s.nginx.org/v1
kind: Policy
metadata:
  name: rate-limit-policy
spec:
  rateLimit:
    rate: 1r/s
    key: ${binary_remote_addr}
    zoneSize: 10M
    scale: true

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vepatel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants