Skip to content

Commit

Permalink
Add the ability to set API_REQUESTS_RATE_LIMIT in everest
Browse files Browse the repository at this point in the history
Signed-off-by: Mayank Shah <[email protected]>
  • Loading branch information
mayankshah1607 committed Nov 12, 2024
1 parent 456b860 commit 5d50858
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/everest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ The following table shows the configurable parameters of the Percona Everest cha
| operator.image | string | `"perconalab/everest-operator"` | Image to use for the Everest operator container. |
| operator.metricsAddr | string | `"127.0.0.1:8080"` | Metrics address for the operator. |
| operator.resources | object | `{"limits":{"cpu":"500m","memory":"128Mi"},"requests":{"cpu":"5m","memory":"64Mi"}}` | Resources to allocate for the operator container. |
| server.apiRequestsRateLimit | int | `100` | Set the allowed number of requests per minute. |
| server.image | string | `"perconalab/everest"` | Image to use for the server container. |
| server.oidc | object | `{}` | OIDC configuration for Everest. |
| server.rbac | string | `"g, admin, role:admin\n"` | RBAC policy for Everest. |
Expand Down
5 changes: 5 additions & 0 deletions charts/everest/templates/everest-server/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,8 @@ spec:
volumeMounts:
- name: jwt-secret
mountPath: /etc/jwt
env:
{{- if hasKey .Values.server "apiRequestsRateLimit" }}
- name: API_REQUESTS_RATE_LIMIT
value: "{{ .Values.server.apiRequestsRateLimit }}"
{{- end }}
2 changes: 2 additions & 0 deletions charts/everest/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ server:
oidc: {}
# issuerUrl: ""
# clientId: ""
# -- Set the allowed number of requests per minute.
apiRequestsRateLimit: 100
operator:
# -- Image to use for the Everest operator container.
image: perconalab/everest-operator
Expand Down

0 comments on commit 5d50858

Please sign in to comment.