Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{{- if .Values.rateLimiter.enabled }}
# and enforces quota-based rate limiting for upstream clusters.
apiVersion: apps/v1
Comment thread
aabchoo marked this conversation as resolved.
kind: Deployment
metadata:
name: {{ .Values.rateLimiter.name }}
namespace: {{ .Release.Namespace }}
spec:
replicas: 1
selector:
matchLabels:
app: {{ .Values.rateLimiter.name }}
template:
metadata:
labels:
app: {{ .Values.rateLimiter.name }}
spec:
containers:
- name: ratelimit
command:
- /bin/ratelimit
image: "{{ .Values.rateLimiter.image.repository }}:{{ .Values.rateLimiter.image.tag }}"
imagePullPolicy: {{ .Values.rateLimiter.imagePullPolicy }}
ports:
- containerPort: {{ .Values.rateLimiter.port }}
name: grpc
env:
{{- toYaml .Values.rateLimiter.env | nindent 12 }}
Comment thread
aabchoo marked this conversation as resolved.
Outdated
---
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.rateLimiter.name }}
namespace: {{ .Release.Namespace }}
spec:
selector:
app: {{ .Values.rateLimiter.name }}
ports:
- name: grpc
protocol: TCP
port: {{ .Values.rateLimiter.port }}
targetPort: {{ .Values.rateLimiter.port }}
type: ClusterIP
{{- end }}
30 changes: 30 additions & 0 deletions manifests/charts/ai-gateway-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,36 @@ controller:
# Number of PBKDF2 iterations to use for deriving the MCP session encryption key with the fallback seed.
iterations: 100000

rateLimiter:
enabled: false
name: envoy-ai-gateway-ratelimit
image:
repository: docker.io/envoyproxy/ratelimit
tag: "1631871c"
imagePullPolicy: IfNotPresent
port: 8081
env:
- name: LOG_LEVEL
value: debug
- name: REDIS_SOCKET_TYPE
value: tcp
- name: REDIS_URL
value: redis.redis-system.svc.cluster.local:6379
- name: RUNTIME_ROOT
value: /data
- name: RUNTIME_SUBDIRECTORY
value: ratelimit
- name: USE_STATSD
value: "false"
- name: CONFIG_TYPE
value: GRPC_XDS_SOTW
- name: CONFIG_GRPC_XDS_NODE_ID
value: envoy-ai-gateway-ratelimit
- name: CONFIG_GRPC_XDS_SERVER_URL
value: ai-gateway-controller.envoy-ai-gateway-system.svc.cluster.local:18002
Comment thread
aabchoo marked this conversation as resolved.
- name: GRPC_PORT
value: "8081"

# Configuration for the Envoy Gateway component that AI Gateway relies on to program Envoy.
envoyGateway:
# The namespace where the Envoy Gateway controller is installed.
Expand Down
2 changes: 0 additions & 2 deletions tests/e2e/testdata/backend_quota_ratelimit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ spec:
ports:
- containerPort: 8081
name: grpc
args:
- --quotaRateLimitServiceAddr=envoy-ai-gateway-ratelimit.envoy-gateway-system
env:
- name: LOG_LEVEL
value: debug
Expand Down
Loading