wire rate limit middleware to portfolio IngressRoute
This commit is contained in:
parent
dc8b485b51
commit
c470c60b4a
@ -74,8 +74,24 @@ spec:
|
|||||||
routes:
|
routes:
|
||||||
- match: Host(`nik4nao.com`)
|
- match: Host(`nik4nao.com`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
|
middlewares:
|
||||||
|
- name: portfolio-ratelimit
|
||||||
services:
|
services:
|
||||||
- name: portfolio
|
- name: portfolio
|
||||||
port: 80
|
port: 80
|
||||||
tls:
|
tls:
|
||||||
secretName: portfolio-tls
|
secretName: portfolio-tls
|
||||||
|
---
|
||||||
|
apiVersion: traefik.io/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
name: portfolio-ratelimit
|
||||||
|
namespace: portfolio
|
||||||
|
spec:
|
||||||
|
rateLimit:
|
||||||
|
average: 50
|
||||||
|
burst: 100
|
||||||
|
period: 1m
|
||||||
|
sourceCriterion:
|
||||||
|
ipStrategy:
|
||||||
|
depth: 1
|
||||||
Loading…
x
Reference in New Issue
Block a user