Skip to content

Commit

Permalink
Added rate limit policys for both gateways
Browse files Browse the repository at this point in the history
  • Loading branch information
dlaw4608 committed Jul 16, 2024
1 parent b177ef4 commit d54846c
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions hack/topology_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,44 @@ spec:
- name: toystore
port: 80
---
apiVersion: kuadrant.io/v1beta2
kind: RateLimitPolicy
metadata:
name: paying-customer-rate-limit
namespace: istio-system
spec:
targetRef:
group: gateway.networking.k8s.io
kind: Gateway
name: paying-customer-gw
limits:
"high-priority":
rates:
- limit: 100
duration: 1
unit: second
---
apiVersion: kuadrant.io/v1beta2
kind: RateLimitPolicy
metadata:
name: free-tier-rate-limit
namespace: istio-system
spec:
targetRef:
group: gateway.networking.k8s.io
kind: Gateway
name: free-tier-gw
limits:
"low-priority":
rates:
- limit: 10
duration: 1
unit: second
EOF
}

Expand Down

0 comments on commit d54846c

Please sign in to comment.