Skip to content

Commit

Permalink
examples: update envoy/ratelimit image tag (#6246)
Browse files Browse the repository at this point in the history
Updates to 19f2079f tag (the latest).

Signed-off-by: Steve Kriss <stephen.kriss@gmail.com>
  • Loading branch information
skriss authored Mar 5, 2024
1 parent 53e9159 commit e64a50a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/6246-skriss-small.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Updates the example `envoyproxy/ratelimit` image tag to `19f2079f`, for multi-arch support and other improvements.
4 changes: 2 additions & 2 deletions examples/ratelimit/02-ratelimit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
- name: REDIS_URL
value: redis:6379
- name: ratelimit
image: docker.io/envoyproxy/ratelimit:8d6488ea # latest a/o Mar 24 2022
image: docker.io/envoyproxy/ratelimit:19f2079f # latest a/o Mar 5 2024
ports:
- containerPort: 8080
name: http
Expand Down Expand Up @@ -83,7 +83,7 @@ spec:
initialDelaySeconds: 5
periodSeconds: 5
volumes:
- name: ratelimit-config
- name: ratelimit-config
configMap:
name: ratelimit-config

Expand Down
16 changes: 8 additions & 8 deletions site/content/docs/main/guides/global-rate-limiting.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ data:
ratelimit-config.yaml: |
domain: contour
descriptors:
# requests with a descriptor of ["generic_key": "foo"]
# are limited to one per minute.
- key: generic_key
value: foo
rate_limit:
unit: minute
requests_per_unit: 1
# each unique remote address (i.e. client IP)
# is limited to three requests per minute.
- key: remote_address
Expand Down Expand Up @@ -90,7 +90,7 @@ spec:
- name: REDIS_URL
value: redis:6379
- name: ratelimit
image: docker.io/envoyproxy/ratelimit:6f5de117
image: docker.io/envoyproxy/ratelimit:19f2079f
ports:
- containerPort: 8080
name: http
Expand Down Expand Up @@ -129,7 +129,7 @@ spec:
initialDelaySeconds: 5
periodSeconds: 5
volumes:
- name: ratelimit-config
- name: ratelimit-config
configMap:
name: ratelimit-config
```
Expand All @@ -155,7 +155,7 @@ spec:
Check the progress of the deployment:
```bash
$ kubectl -n projectcontour get pods -l app=ratelimit
$ kubectl -n projectcontour get pods -l app=ratelimit
NAME READY STATUS RESTARTS AGE
ratelimit-658f4b8f6b-2hnrf 2/2 Running 0 12s
```
Expand All @@ -181,7 +181,7 @@ spec:
- name: ratelimit
port: 8081
timeoutPolicy:
response: 100ms
response: 100ms
```
Update the Contour configmap to have the following RLS configuration:
Expand Down Expand Up @@ -332,7 +332,7 @@ spec:
## Default Global rate limit policy

Contour supports defining a default global rate limit policy in the `rateLimitService` configuration
which is applied to all virtual hosts unless the host is opted-out by
which is applied to all virtual hosts unless the host is opted-out by
explicitly setting `disabled` to `true`. This is useful for a single-tenant
setup use-case. This means you don't have to edit all HTTPProxy objects with the same rate limit policies, instead you can
define the policies in the `rateLimitService` configuration like this:
Expand Down Expand Up @@ -413,7 +413,7 @@ descriptors:
rate_limit:
unit: minute
requests_per_unit: 1
# each unique remote address (i.e. client IP)
# is limited to three total requests per minute.
- key: remote_address
Expand Down

0 comments on commit e64a50a

Please sign in to comment.