ratelimit $ k get globalratelimitconfig,globalratelimit,ratelimitservice
NAME AGE
globalratelimitconfig.ratelimit.zufardhiyaulhaq.com/echo-redis 100m
NAME AGE
globalratelimit.ratelimit.zufardhiyaulhaq.com/echo-redis-http-8080 100m
globalratelimit.ratelimit.zufardhiyaulhaq.com/echo-redis-http-8081 100m
NAME AGE
ratelimitservice.ratelimit.zufardhiyaulhaq.com/echo-redis-ratelimit-service 100m
root@examples-helloworld-v1-655db4f97b-jhcjv:/opt/microservices# curl echo-redis:8080/redis/hi -v
* Hostname was NOT found in DNS cache
* Trying 10.32.185.200...
* Connected to echo-redis (10.32.185.200) port 8080 (#0)
> GET /redis/hi HTTP/1.1
> User-Agent: curl/7.38.0
> Host: echo-redis:8080
> Accept: */*
>
< HTTP/1.1 429 Too Many Requests
< x-envoy-ratelimited: true
< date: Sun, 31 Oct 2021 08:03:15 GMT
* Server envoy is not blacklisted
< server: envoy
< content-length: 0
< x-envoy-upstream-service-time: 4
<
* Connection #0 to host echo-redis left intact
Checklist:
[x] My code follows the code style of this project.
[x] My change requires a change to the documentation.
[x] I have updated the documentation accordingly.
[x] I have written new tests for my changes.
[x] My changes successfully ran and pass tests locally.
Signed-off-by: zufardhiyaulhaq zufardhiyaulhaq@gmail.com
Summary
Extend global rate limit for sidecar
Type of Change
How has this been tested?
Checklist: