From 9d5b11186ab1c856168cefeed7b210164a030939 Mon Sep 17 00:00:00 2001 From: Mitch Dawson <86007219+mitchdawson1982@users.noreply.github.com> Date: Fri, 8 Nov 2024 14:55:27 +0000 Subject: [PATCH] Apply per request rate limiting to nginx (#1029) Configure requests per second = 200 --- deployments/templates/ingress.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/deployments/templates/ingress.yml b/deployments/templates/ingress.yml index bda9ae50..9f2f5190 100644 --- a/deployments/templates/ingress.yml +++ b/deployments/templates/ingress.yml @@ -5,6 +5,7 @@ metadata: annotations: external-dns.alpha.kubernetes.io/set-identifier: find-moj-data-ingress-${NAMESPACE}-green external-dns.alpha.kubernetes.io/aws-weight: "100" + nginx.ingress.kubernetes.io/limit-rps: "200" nginx.ingress.kubernetes.io/enable-modsecurity: "true" nginx.ingress.kubernetes.io/modsecurity-snippet: | SecRuleEngine On